Skip to content

Commit

Permalink
Add back RSEM support for IHEC profile
Browse files Browse the repository at this point in the history
  • Loading branch information
emi80 committed May 3, 2024
1 parent 39f14d1 commit e72b889
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions modules/quantification/rsem/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,14 @@ process calculateExpression {
def cmd = []
if ( convertBam ) {
rsemPrefix = "${rsemPrefix}.rsem"
def convertMemory = Math.max(1024, ( memory / task.cpus / 2 ) as long)
def convertOpts = ""
if ( params.rsemVersion.startsWith("1.3") && ( ! params.container.contains("ihec") ) ) {
def convertMemory = Math.max(1024, ( memory / task.cpus / 2 ) as long)
convertOpts = "-p ${task.cpus} --memory-per-thread ${convertMemory}M"
}
cmd << """\
mkfifo ${rsemPrefix}.bam
convert-sam-for-rsem -p ${task.cpus} \\
--memory-per-thread ${convertMemory}M \\
convert-sam-for-rsem ${convertOpts} \\
${bam} \\
${rsemPrefix} &
""".stripIndent()
Expand Down

0 comments on commit e72b889

Please sign in to comment.