You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On certain sequences (perhaps because they have large gaps between ORFs), phanotate v1.6.4 throws an error. This is not observed with phanotate v1.5.1, which returns ORF predictions.
(phanotate_164) mjt % phanotate.py --version
1.6.4
(phanotate_164) mjt % phanotate.py -f tabular uParvo3481.fasta -o uParvo3481.phan_v1.6.4.tsv
Traceback (most recent call last):
File "/Users/michaeltisza/miniconda3/envs/phanotate_164/bin/phanotate.py", line 49, in <module>
graph = functions.get_graph(orfs)
File "/Users/michaeltisza/miniconda3/envs/phanotate_164/lib/python3.10/site-packages/phanotate_modules/functions.py", line 429, in get_graph
G.add_edge(Edge(left_node, right_node, score ))
File "/Users/michaeltisza/miniconda3/envs/phanotate_164/lib/python3.10/site-packages/phanotate_modules/graphs.py", line 74, in add_edge
raise ValueError("parallel edges are forbidden")
ValueError: parallel edges are forbidden
The sequence below was used as the input. Notably, this contig is not predicted to belong to a phage genome, and therefore this may be the intended behavior of phanotate.
Ah, a week ago or so ago I increased the distance threshold during the ORF connection step from 300bp to 500bp to fix a situation where gaps in the ORFs of the genome broke the path through the genome, but I forgot to also increase the distance in the code that should have found those gaps above the threshold and connected ORFs across the gap (not sure why it didn't to catch the gaps, probably an off-by-one error on my part)
Just fixed both distance thresholds to match and pushed the new version to pypi and here : )
Hi,
On certain sequences (perhaps because they have large gaps between ORFs),
phanotate v1.6.4
throws an error. This is not observed withphanotate v1.5.1
, which returns ORF predictions.The sequence below was used as the input. Notably, this contig is not predicted to belong to a phage genome, and therefore this may be the intended behavior of
phanotate
.Best,
Mike
The text was updated successfully, but these errors were encountered: