Skip to content

Commit

Permalink
Deal with genomes > 4 Gbp
Browse files Browse the repository at this point in the history
Closes #81
  • Loading branch information
muffato committed Nov 6, 2023
1 parent e09862e commit 34e8eb2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion conf/modules.config
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ process {
}

withName: '.*:.*:ALIGN_HIFI:MINIMAP2_ALIGN' {
ext.args = '-ax map-hifi --cs=short'
// For genomes larger than 4 Gbp, add the -I option with the genome size in Gbp
ext.args = { '-ax map-hifi --cs=short' + (meta.genome_size > 4294967296 ? (" -I" + Math.ceil(meta.genome_size/1073741824)+"G") : "") }
}

withName: '.*:.*:ALIGN_CLR:MINIMAP2_ALIGN' {
Expand Down

0 comments on commit 34e8eb2

Please sign in to comment.