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 running gubbins_drawer.py with v. 2.2.0 #184

Closed
robynslee opened this issue Nov 29, 2016 · 4 comments
Closed

Error running gubbins_drawer.py with v. 2.2.0 #184

robynslee opened this issue Nov 29, 2016 · 4 comments
Labels

Comments

@robynslee
Copy link

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

@seifst
Copy link

seifst commented Dec 17, 2016

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:
gubbins_drawer.py -o filename.pdf ~/Desktop/Gubbins/filename.final_tree.tre ~/Desktop/Gubbins/filename.recombination_predictions.embl
43 features found for /home/steph/Desktop/Gubbins/filename.recombination_predictions.embl
Traceback (most recent call last):
File "/home/steph/.linuxbrew/Cellar/gubbins/2.2.0/libexec/bin/gubbins_drawer.py", line 685, in
new_tracks=add_ordered_tab_to_diagram(arg)
File "/home/steph/.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/steph/.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/steph/.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'

@ammaraziz
Copy link

An input file would help with debugging. Also potentially running verbose mode will also give a better idea of the issue.

@bogemad
Copy link

bogemad commented Apr 6, 2017

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.

@andrewjpage
Copy link
Contributor

Fixed

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

No branches or pull requests

5 participants