mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-22 19:18:17 +00:00
Use STAR to build initial index for RSEM
This commit is contained in:
parent
794a5cbd0c
commit
e5c7ecc89c
1 changed files with 36 additions and 10 deletions
|
@ -24,15 +24,41 @@ process RSEM_PREPAREREFERENCE {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def software = getSoftwareName(task.process)
|
def software = getSoftwareName(task.process)
|
||||||
"""
|
def args = options.args.tokenize()
|
||||||
mkdir rsem
|
if (args.contains('--star')) {
|
||||||
rsem-prepare-reference \\
|
args.removeIf { it.contains('--star') }
|
||||||
--gtf $gtf \\
|
def memory = task.memory ? "--limitGenomeGenerateRAM ${task.memory.toBytes() - 100000000}" : ''
|
||||||
--num-threads $task.cpus \\
|
"""
|
||||||
$options.args \\
|
mkdir rsem
|
||||||
$fasta \\
|
STAR \\
|
||||||
rsem/genome
|
--runMode genomeGenerate \\
|
||||||
|
--genomeDir rsem/ \\
|
||||||
|
--genomeFastaFiles $fasta \\
|
||||||
|
--sjdbGTFfile $gtf \\
|
||||||
|
--runThreadN $task.cpus \\
|
||||||
|
$memory \\
|
||||||
|
$options.args2
|
||||||
|
|
||||||
rsem-calculate-expression --version | sed -e "s/Current version: RSEM v//g" > ${software}.version.txt
|
rsem-prepare-reference \\
|
||||||
"""
|
--gtf $gtf \\
|
||||||
|
--num-threads $task.cpus \\
|
||||||
|
${args.join(' ')} \\
|
||||||
|
$fasta \\
|
||||||
|
rsem/genome
|
||||||
|
|
||||||
|
rsem-calculate-expression --version | sed -e "s/Current version: RSEM v//g" > ${software}.version.txt
|
||||||
|
"""
|
||||||
|
} else {
|
||||||
|
"""
|
||||||
|
mkdir rsem
|
||||||
|
rsem-prepare-reference \\
|
||||||
|
--gtf $gtf \\
|
||||||
|
--num-threads $task.cpus \\
|
||||||
|
$options.args \\
|
||||||
|
$fasta \\
|
||||||
|
rsem/genome
|
||||||
|
|
||||||
|
rsem-calculate-expression --version | sed -e "s/Current version: RSEM v//g" > ${software}.version.txt
|
||||||
|
"""
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue