Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update annotate.py to fix a TypeError with annotations.py
Fixed error regarding unhashable SeqFeatures. Error was as follows: ```bash warnings.warn( Traceback (most recent call last): File "/projects/kr58/software/conda_envs/bactabolize_v1.0.1/bin/bactabolize", line 10, in <module> sys.exit(entry()) File "/projects/kr58/software/conda_envs/bactabolize_v1.0.1/lib/python3.9/site-packages/bactabolize/main.py", line 23, in entry run_draft_model(config) File "/projects/kr58/software/conda_envs/bactabolize_v1.0.1/lib/python3.9/site-packages/bactabolize/main.py", line 49, in run_draft_model annotate.run(config.assembly_fp, config.assembly_genbank_fp) File "/projects/kr58/software/conda_envs/bactabolize_v1.0.1/lib/python3.9/site-packages/bactabolize/annotate.py", line 50, in run match_existing_orfs_updated_annotations(output_fp, assembly_genbank_fp) File "/projects/kr58/software/conda_envs/bactabolize_v1.0.1/lib/python3.9/site-packages/bactabolize/annotate.py", line 128, in match_existing_orfs_updated_annotations features_matched = discover_overlaps(positions, overlap_min) File "/projects/kr58/software/conda_envs/bactabolize_v1.0.1/lib/python3.9/site-packages/bactabolize/annotate.py", line 202, in discover_overlaps if (feature_new, feature_existing) in features_matched: TypeError: unhashable type: 'SeqFeature' ```
- Loading branch information