Repository navigation
bismark/deduplicate, bismark/methylationextractor: size resources for Rust Bismark - #13944
Open
FelixKrueger wants to merge 1 commit into
Open
FelixKrueger wants to merge 1 commit into
FelixKrueger wants to merge 1 commit into
Conversation
deduplicate passes `--parallel min(task.cpus, 8)` unless ext.args sets it: Rust Bismark's BGZF decode/encode workers; output is byte-identical for any value and gains stop at about 8. On methylseq test_full it used 1.0 of 12 requested CPUs. methylationextractor moves to process_medium and no longer derives `--multicore` (cpus/3) or `--buffer_size` (memory - 2G) from the task: extra workers don't speed up Rust extraction, which is BAM-decode bound, and the sort buffer is a Perl-era setting. On test_full it used 3.1 of 12 CPUs and 2.2 of 72 GB. Pipelines needing more (e.g. `--CX`) set it in config.
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.
bismark/deduplicatenow passes--parallel min(task.cpus, 8), so Rust Bismark's multithreaded BAM decoding and encoding uses the cores the task requests. On a full methylseq run it used 1 of 12 requested CPUs before this change. The output is identical for any--parallelvalue.bismark/methylationextractormoves toprocess_mediumand no longer derives--multicoreand--buffer_sizefrom the task resources. Neither changes the output of Rust Bismark. Raising--multicoredoesn't speed up extraction, and the task used 3 of 12 CPUs and 2.2 of 72 GB. Removing the two rules also stops them clashing with a user's--parallelor--ample_memoryinext.args.Details (AI-assisted)
test_full(7 PE WGBS samples). Before: dedup used 1.0 of 12 CPUs and 3.7 of 72 GB; the extractor used 3.1 of 12 CPUs and 2.2 of 72 GB. With this change: dedup uses 7–8 CPUs, and its total run time across the 7 samples falls from 1.06 h to 0.17 h. The extractor's run time is unchanged atprocess_medium.process_highfor memory at about 1 B read pairs (~55 GB). Extractor--CXruns need more memory thanprocess_mediumgives, which pipelines set in their own config.--parallelinext.argsis respected.fastq_align_dedup_bismarksubworkflow tests pass against the current snapshots (no snapshot changes); only nf-core/methylseq uses these two modules.PR checklist
labelnf-core modules test bismark/deduplicate --profile docker,nf-core modules test bismark/methylationextractor --profile dockernf-core subworkflows test fastq_align_dedup_bismark --profile docker