I have implemented a GFA class in the GFA.py file, I added it to realign, exactly in the realign_gaf
replaced line nodes = gaftools.gaf.parse_gfa(graph, with_sequence=True) with graph_obj = GFA(graph) and replaced path_sequence = gaftools.gaf.get_path(nodes, line.path) with path_sequence = graph_obj.extract_path(line.path)
I have implemented a GFA class in the GFA.py file, I added it to realign, exactly in the realign_gaf replaced line
nodes = gaftools.gaf.parse_gfa(graph, with_sequence=True)
withgraph_obj = GFA(graph)
and replacedpath_sequence = gaftools.gaf.get_path(nodes, line.path)
withpath_sequence = graph_obj.extract_path(line.path)