Skip to content

Commit

Permalink
hack around mod -u bug with double convert
Browse files Browse the repository at this point in the history
  • Loading branch information
glennhickey committed Aug 12, 2021
1 parent 1dcd82f commit 6cd9a42
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cactus/refmap/cactus_graphmap_join.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,8 @@ def clip_vg(job, options, config, vg_path, vg_id):
fix_cmd += ['--dont_collapse', options.reference + '*']
cactus_call(parameters=fix_cmd)
# GFAFfix doesn't seem to unchop that well, so we do that in vg after
cactus_call(parameters=[['vg', 'convert', '-g', '-p', gfa_out_path], ['vg', 'mod', '-u', '-']], outfile=normalized_path)
# The double convert is to work around: https://github.com/vgteam/vg/issues/3373
cactus_call(parameters=[['vg', 'convert', '-g', '-a', gfa_out_path], ['vg', 'mod', '-u', '-'], ['vg', 'convert', '-p', '-']], outfile=normalized_path)
clipped_path = normalized_path

# also forwardize just in case
Expand Down

0 comments on commit 6cd9a42

Please sign in to comment.