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

Error with 3' UTR Annotation #150

Open
rsajulga-nmdp opened this issue Aug 28, 2020 · 1 comment
Open

Error with 3' UTR Annotation #150

rsajulga-nmdp opened this issue Aug 28, 2020 · 1 comment

Comments

@rsajulga-nmdp
Copy link

When the 3' UTR is missing, a line in the code does not account for this circumstance. The error is as follows:

Traceback (most recent call last):
  File "/gfe/seq2gfe", line 99, in <module>
    main()
  File "/gfe/seq2gfe", line 71, in main
    ann = seqann.annotate(seq, loc)
  File "/usr/local/lib/python3.7/site-packages/seqann/sequence_annotation.py", line 469, in annotate
    cutoff=align_cutoff)
  File "/usr/local/lib/python3.7/site-packages/seqann/sequence_annotation.py", line 775, in ref_align
    and 'three_prime_UTR' in annotation.annotation:
TypeError: argument of type 'NoneType' is not iterable

This is due to the following code chunk in seqann/sequence_annotation.py (starting at line 773):

if an.features[f].location.start == 0 \
        and f != "five_prime_UTR" \
        and 'three_prime_UTR' in annotation.annotation:
    del an.features[f]
    continue
@rsajulga-nmdp
Copy link
Author

Solution suggested here: #151

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

1 participant