Open W-L opened 2 years ago
Hi @W-L
thank you for finding this bug. I think I find out, why the error arises. A JSON tag is created, since a list is assigned to it, but later, I tried to rewrite the tag as a string, failing since the datatype was J and the format incorrect for that datatype. Thus, I changed the datatype to Z manually before rewriting the content, and now it seems to work correctly.
I did not close the issue yet (or rather temporarily re-opened it), since I have not yet added a test for this and probably more checks would be better.
Hi Giorgio, Thanks for the great library! I came across an issue when using
merge_linear_paths
withenable_tracking=True
. Not sure if it's a general problem or maybe a version incompatibility? The 'or' tag of the merged segments is correctly created, but at the end of merging (within__create_merged_segment
, line 329 overwriting the 'or' tag by joining the list causes an error with a traceback that I don't understand. If the tag is instead assigned to a new name it works as expected. If it's helpful I attached a gfa file with a single overlap that causes the error for me, but I suspect any would do in my case. Any ideas what the problem is? Thanks!test.gfa.txt