-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstar_index.nf
More file actions
41 lines (32 loc) · 830 Bytes
/
star_index.nf
File metadata and controls
41 lines (32 loc) · 830 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/usr/bin/env nextflow
/*
* Parameters for execution
*/
params.genome = "$baseDir/Zmays_493_APGv4.fa"
params.gtf = "$baseDir/Zmays_493_RefGen_V4.gene_exons.gff3"
/*
* The reference genome file
*/
genome_gtf = file(params.gtf)
genome_fna = file(params.genome)
/*
* Index Genome using STAR
*/
process indexReference {
publishDir "$baseDir/data/references/"
input:
file genome_gtf
file genome_fna
clusterOptions = {"-l select=1:ncpus=6:mem=90gb,walltime=25:00:00"}
module 'singularity'
script:
"""
singularity run -B /scratch2 ~/singularity_containers/STAR.simg STAR --runThreadN 6 \
--runMode genomeGenerate \
--genomeDir ${baseDir} \
--genomeFastaFiles ${genome_fna} \
--sjdbGTFfile ${genome_gtf} \
--sjdbGTFtagExonParentTranscript Parent \
--sjdbOverhang 100
"""
}