Skip to content

Commit

Permalink
Optimised settings for minimap2, taken from the read-mapping pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
muffato committed Mar 22, 2024
1 parent b967b51 commit bf82511
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 2 deletions.
20 changes: 20 additions & 0 deletions conf/base.config
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,26 @@ process {
memory = { check_max( 200.GB * task.attempt, 'memory' ) }
}

withName: '.*:MINIMAP2_ALIGNMENT:MINIMAP2_CCS' {
cpus = { log_increase_cpus(4, 2*task.attempt, meta.read_count/1000000, 2) }
memory = { check_max( 800.MB * log_increase_cpus(4, 2*task.attempt, meta.read_count/1000000, 2) + 14.GB * Math.ceil( Math.pow(meta2.genome_size / 1000000000, 0.6)) * task.attempt, 'memory' ) }
time = { check_max( 3.h * Math.ceil( meta.read_count / 1000000 ) * task.attempt, 'time' ) }
}

// Extrapolated from the HIFI settings on the basis of 1 ONT alignment. CLR assumed to behave the same way as ONT
withName: '.*:MINIMAP2_ALIGNMENT:MINIMAP2_(CLR|ONT)' {
cpus = { log_increase_cpus(4, 2*task.attempt, meta.read_count/1000000, 2) }
memory = { check_max( 800.MB * log_increase_cpus(4, 2*task.attempt, meta.read_count/1000000, 2) + 30.GB * Math.ceil( Math.pow(meta2.genome_size / 1000000000, 0.6)) * task.attempt, 'memory' ) }
time = { check_max( 1.h * Math.ceil( meta.read_count / 1000000 ) * task.attempt, 'time' ) }
}

// Temporarily the same settings as CCS
withName: '.*:MINIMAP2_ALIGNMENT:MINIMAP2_(HIC|ILMN)' {
cpus = { log_increase_cpus(4, 2*task.attempt, meta.read_count/1000000, 2) }
memory = { check_max( 800.MB * log_increase_cpus(4, 2*task.attempt, meta.read_count/1000000, 2) + 14.GB * Math.ceil( Math.pow(meta2.genome_size / 1000000000, 0.6)) * task.attempt, 'memory' ) }
time = { check_max( 3.h * Math.ceil( meta.read_count / 1000000 ) * task.attempt, 'time' ) }
}

withName: 'WINDOWSTATS_INPUT' {
cpus = { check_max( 1 , 'cpus' ) }
// 2 GB per 1 Gbp
Expand Down
3 changes: 2 additions & 1 deletion modules.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@
"minimap2/align": {
"branch": "master",
"git_sha": "2c2d1cf80866dbd6dd0ea5d61ddd59533a72d41e",
"installed_by": ["modules"]
"installed_by": ["modules"],
"patch": "modules/nf-core/minimap2/align/minimap2-align.diff"
},
"multiqc": {
"branch": "master",
Expand Down
1 change: 0 additions & 1 deletion modules/nf-core/minimap2/align/main.nf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions modules/nf-core/minimap2/align/minimap2-align.diff

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bf82511

Please sign in to comment.