feat: add fermikit single-thread option - #77
Merged
wshuai294 merged 1 commit intoJul 27, 2026
Merged
Conversation
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.
This is a re-creation of TRON-Bioinformatics#1 for merging into the upstream.
This PR has been (largely) created using Copilot, but I have reviewed all changes and have run the example/test_all.sh script on this code.
Original text from copilot
The genotyping pipeline re-aligns reads against a de-novo HLA assembly, but fermikit assembly can vary across runs when multi-threaded. This change adds an explicit option to keep the overall pipeline threaded while forcing the fermikit assembly step itself to run single-threaded for reproducible contig construction.
New CLI control
-Ftoscript/whole/SpecHLA.shto force the fermikit de-novo assembly stage to run with one thread.script/whole/test_SpecHLA.shto keep the test entrypoint aligned with the main CLI.Scoped threading change
script/run.assembly.realign.sh.fermi2.pl unitig.-jthread count.Documentation
README.MDto expose the new option and intended behavior.Example:
# Keep the pipeline at 8 threads, but force fermikit assembly to use 1 bash script/whole/SpecHLA.sh -n sample -1 sample.R1.fq.gz -2 sample.R2.fq.gz -j 8 -FOriginal prompt
Created from VS Code.