Given a reference longer than 4Gb, minimap2 is unable to see all the sequences and thus can't produce a correct SAM header. This throws an error in the MinimapToBam rule with the sorting step. This fix avoids the issue by splitting this rule into two new rules: MinimapIndex and MinimapToBam. These rules index the reference prior to alignment and run minimap2 with the --split-prefix option, respectively.
Given a reference longer than 4Gb, minimap2 is unable to see all the sequences and thus can't produce a correct SAM header. This throws an error in the
MinimapToBam
rule with the sorting step. This fix avoids the issue by splitting this rule into two new rules:MinimapIndex
andMinimapToBam
. These rules index the reference prior to alignment and run minimap2 with the--split-prefix
option, respectively.