-
Notifications
You must be signed in to change notification settings - Fork 50
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 running gubbins_drawer.py with v. 2.2.0 #184
Comments
I am running into the same issue on Ubuntu 14.04 and Mac OSX Yosemite whether I use Biopython 1.68, 1.67, or 1.66. Any work around would be greatly appreciated! Full output: |
An input file would help with debugging. Also potentially running verbose mode will also give a better idea of the issue. |
For anyone still having this problem, I've managed to solve this by using biopython <= 1.65. I believe that .sub_features are now depreciated in biopython. |
Fixed |
Hi there,
I hope you can help? I keep getting the error "AttributeError: 'SeqFeature' object has no attribute 'sub_features'" when attempting to run gubbins_drawer.py.
The command used was:
gubbins_drawer.py -o test_gub.pdf -t core.full.final_tree.tre core.full.branch_base_reconstruction.embl
Full output:
28360 features found for core.full.branch_base_reconstruction.embl
Traceback (most recent call last):
File "/home/linuxbrew/.linuxbrew/Cellar/gubbins/2.2.0/libexec/bin/gubbins_drawer.py", line 685, in
new_tracks=add_ordered_tab_to_diagram(arg)
File "/home/linuxbrew/.linuxbrew/Cellar/gubbins/2.2.0/libexec/bin/gubbins_drawer.py", line 250, in add_ordered_tab_to_diagram
new_tracks=add_ordered_embl_to_diagram(record, incfeatures=["i", "d", "li", "del", "snp", "misc_feature", "core", "cds", "insertion", "deletion", "recombination", "feature", "blastn_hit", "fasta_record", "variation"], emblfile=False)
File "/home/linuxbrew/.linuxbrew/Cellar/gubbins/2.2.0/libexec/bin/gubbins_drawer.py", line 204, in add_ordered_embl_to_diagram
locations=iterate_subfeatures(feature, locations)
File "/home/linuxbrew/.linuxbrew/Cellar/gubbins/2.2.0/libexec/bin/gubbins_drawer.py", line 142, in iterate_subfeatures
if len(feature.sub_features)>0:
AttributeError: 'SeqFeature' object has no attribute 'sub_features'
I wonder if it might be related to this: chapmanb/bcbb#110
Thanks.
Best,
Robyn
The text was updated successfully, but these errors were encountered: