-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathalignment.nf
More file actions
33 lines (26 loc) · 930 Bytes
/
alignment.nf
File metadata and controls
33 lines (26 loc) · 930 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
#!/usr/bin/env nextflow
// Define the process for alignment
process align {
input:
file fastq from inputFile
file referenceIndex from params.reference_index
script:
"""
bowtie2 --very-sensitive -x \${referenceIndex} -q \${fastq} -p 2 > \${fastq.baseName}.sam
samtools view -bS \${fastq.baseName}.sam > \${fastq.baseName}.bam
"""
}
// Define your pipeline inputs
input:
file controlFastq
file treatedFastq
// Define your pipeline outputs
output:
file '/Users/rima/Documents/Module_08/Control_SRR7080719.bam' into controlBam
file '/Users/rima/Documents/Module_08/treated_SRR7080718.bam' into treatedBam
// Define pipeline parameters and options
params.reference_index = '/Users/rima/Documents/Module_08/human_Genome'
// Run the alignment process for Control_SRR7080719
align(controlFastq, referenceIndex)
// Run the alignment process for treated_SRR7080718
align(treatedFastq, referenceIndex)