mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-22 11:08:17 +00:00
Merge pull request #87 from drpatelh/rsem_index
Use STAR to build initial index for RSEM
This commit is contained in:
commit
e02f0de514
1 changed files with 36 additions and 10 deletions
|
@ -24,6 +24,31 @@ process RSEM_PREPAREREFERENCE {
|
|||
|
||||
script:
|
||||
def software = getSoftwareName(task.process)
|
||||
def args = options.args.tokenize()
|
||||
if (args.contains('--star')) {
|
||||
args.removeIf { it.contains('--star') }
|
||||
def memory = task.memory ? "--limitGenomeGenerateRAM ${task.memory.toBytes() - 100000000}" : ''
|
||||
"""
|
||||
mkdir rsem
|
||||
STAR \\
|
||||
--runMode genomeGenerate \\
|
||||
--genomeDir rsem/ \\
|
||||
--genomeFastaFiles $fasta \\
|
||||
--sjdbGTFfile $gtf \\
|
||||
--runThreadN $task.cpus \\
|
||||
$memory \\
|
||||
$options.args2
|
||||
|
||||
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 \\
|
||||
|
@ -35,4 +60,5 @@ process RSEM_PREPAREREFERENCE {
|
|||
|
||||
rsem-calculate-expression --version | sed -e "s/Current version: RSEM v//g" > ${software}.version.txt
|
||||
"""
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue