fix --mgSplitWholeGenomeRef option bug - #2011
Open
glennhickey wants to merge 2 commits into
Open
glennhickey wants to merge 2 commits into
glennhickey wants to merge 2 commits into
Conversation
glennhickey
force-pushed
the
mgsplit-wg
branch
from
September 16, 2026 15:37
f1be7f0 to
1e161b0
Compare
9b0ce2d passed name= and cores= to merge_pafs_sized, but toil's FunctionWrappingJob pops memory/cores/disk/accelerators/preemptible/checkpoint/ name out of the kwargs before calling the function, using "name" as the job's unitName. Both were swallowed: the merged file kept the default 'merged.paf' for the GAF merge too, and the bgzip ran on one thread, which is what that commit was meant to fix. Rename them merged_name and gzip_cores; gzip_cores is still passed on to the child as cores=, where toil eating it is the point. Visible in an HPRC log as jobs literally named "merged.gaf" and "merged.paf" either side of `bgzip .../merged.paf --threads 1`. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XScUpHRSBsui9Y67uQxA6a
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix issue where second reference wouldn't get chromosome binned like everything else, allowing for bits of it to bleed into different chromsomes. Only an issue in the new
--mgSplitWholeGenomeoption. The reason was that all references would appear full-genome in every chromosome. But only the first reference is properly post-processed out.This patch takes the simple and easy fix: just use the first reference whole-genome. Since the whole point is better mapq, it should be fine (and even a bit faster).
Caught this because the bug resulted in invalid rGFA, with different ranks getting applied to different segments of the same contig.