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

gfapy.error.NotFoundError: A link equivalent to ... does not exist #31

Open
MrTomRod opened this issue Jul 4, 2024 · 1 comment
Open

Comments

@MrTomRod
Copy link

MrTomRod commented Jul 4, 2024

Dear Giorgio

Thanks for your nice library!

I get this exception:

gfapy.error.NotFoundError: A link equivalent to:
L	edge_2	-	edge_1	+	*
does not exist, but is required by the following paths:
P	contig_4	edge_4+,edge_2-,edge_1+,edge_2+	*

When trying this .gfa file produced by Flye:

H	VN:Z:1.0
S	edge_1	GCCAGCCTAAGAAAGACGCAT	dp:i:1384
S	edge_2	CACGAACTGCACCTTTCAATT	dp:i:1370
S	edge_3	TATAGTCATAAATTATTAGTT	dp:i:453
S	edge_4	ACTTAGTGGTTTTGTATATTT	dp:i:858
L	edge_1	+	edge_2	+	0M	RC:i:1288
L	edge_2	+	edge_4	+	0M	RC:i:604
L	edge_2	+	edge_4	-	0M	RC:i:602
L	edge_3	+	edge_3	+	0M	RC:i:0
L	edge_3	-	edge_3	-	0M	RC:i:0
P	contig_3	edge_3+	*
P	contig_4	edge_4+,edge_2-,edge_1+,edge_2+	*

assembly graph (gfaviz)

Is this a Flye or a gfapy bug? (Made the plot using gfaviz which didn't complain.)

Could you perhaps change from an exception to printing a mere warning? This is my ugly monkey patch that allows me to continue working:

image

@ggonnella
Copy link
Owner

ggonnella commented Jul 12, 2024 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