Closed mikolmogorov closed 1 year ago
add workaround def clean_g(g)-Remove 0len unitigs, virtual and self links In future we won't create zero units and self link, but virtual links will remain: '''The order of the lines in GFA is not prescribed. Therefore, during parsing, or constructing a Gfa in memory, it is possible that a line is referenced to, before it is added to the Gfa instance. Whenever this happens, Gfapy creates a “virtual” line instance.'''
gfa merging function occasionally fails, which seems to be related to sequences with length zero. Ensuring that such sequences are never created (e.g. substitute null sequence with a single nucleotide) should resolve this. Example of the error log: