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

GFF generating failure when supplying own proteomes #84

Closed
wwood opened this issue Jul 8, 2019 · 3 comments
Closed

GFF generating failure when supplying own proteomes #84

wwood opened this issue Jul 8, 2019 · 3 comments

Comments

@wwood
Copy link
Contributor

wwood commented Jul 8, 2019

Supply Prokka-annotated faa files gave this error:

$ enrichm annotate --protein_directory proteomes/ --ko_hmm --output ko_hmm_test
[2019-07-02 11:12:26 AM] INFO: Command: /srv/sw/miniconda3/envs/enrichm_0.5.0rc1/bin/enrichm annotate --protein_directory proteomes/ --ko_hmm --output ko_hmm_test                                                
[2019-07-02 11:12:26 AM] INFO: Running the annotate pipeline
[2019-07-02 11:12:26 AM] INFO: Running pipeline: annotate
[2019-07-02 11:12:26 AM] INFO: Setting up for genome annotation
[2019-07-02 11:12:26 AM] INFO: Using provided proteins
[2019-07-02 11:12:26 AM] INFO: Preparing genomes for annotation
[2019-07-02 11:12:28 AM] INFO: Starting annotation:
[2019-07-02 11:12:28 AM] INFO:     - Annotating genomes with ko ids using HMMs
[2019-07-02 11:49:59 AM] INFO:     - Generating ko frequency table
[2019-07-02 11:49:59 AM] INFO:     - Writing results to file: ko_hmm_test/ko_hmm_frequency_table.tsv
[2019-07-02 11:50:00 AM] INFO: Generating .gff files:
...
[2019-07-02 11:50:00 AM] INFO:     - Generating .gff file for wierdbin1.prokka_archaea
Traceback (most recent call last):
  File "/srv/sw/miniconda3/envs/enrichm_0.5.0rc1/bin/enrichm", line 374, in <module>
    r.run_enrichm(args, sys.argv)
  File "/srv/sw/miniconda3/envs/enrichm_0.5.0rc1/lib/python3.6/site-packages/enrichm/run.py", line 359, in run_enrichm                                                                                            
    args.protein_files)
  File "/srv/sw/miniconda3/envs/enrichm_0.5.0rc1/lib/python3.6/site-packages/enrichm/annotate.py", line 893, in annotate_pipeline                                                                                 
    self.generate_gff_files(genomes_list)
  File "/srv/sw/miniconda3/envs/enrichm_0.5.0rc1/lib/python3.6/site-packages/enrichm/annotate.py", line 634, in generate_gff_files                                                                                
    Writer.write_gff(genome, gff_output)
  File "/srv/sw/miniconda3/envs/enrichm_0.5.0rc1/lib/python3.6/site-packages/enrichm/writer.py", line 69, in write_gff                                                                                            
    'prodigal_id=%s' % sequence.prod_id,
AttributeError: 'Sequence' object has no attribute 'prod_id'

I guess it is expecting a prodigal style header maybe?

@geronimp
Copy link
Owner

Hey,

I can't replicate this error using the master branch. Which is ahead of the conda/pip releases so I think this issue is resolved. I'll release master as 0.5.1, and let me know if that works for you.

Cheers,
J

@geronimp
Copy link
Owner

Hey @wwood am I okay to close this issue?

@wwood
Copy link
Contributor Author

wwood commented Nov 16, 2019 via email

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