Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: primary_transcript_log.txt (doesn't account for all species) #580

Closed
janniksven opened this issue Jun 23, 2021 · 1 comment
Closed

Comments

@janniksven
Copy link

janniksven commented Jun 23, 2021

So far, the script only accounts for isoforms labelled with integers, but in some species (e.g. Drosophila melanogaster), the isoforms are labelled with letters. Thus, to be able to use this script on species where the isoforms are labelled with letters, I would suggest changing lines 84 and 85 (function GetGeneName_NCBI) from:

acc_line = re.sub("isoform [0-9]+ ", "", acc_line)
acc_line = re.sub("isoform X[0-9]+ ", "", acc_line)

to:

acc_line = re.sub("isoform [0-9, A-Z]+ ", "", acc_line)
acc_line = re.sub("isoform X[0-9, A-Z]+ ", "", acc_line)

Cheers,
Jannik

@davidemms
Copy link
Owner

Hi Jannik

Thanks for that, I'll try it out and put it in the next release.

All the best
David

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants