Skip to content
Snippets Groups Projects
Commit 76102f6c authored by Jonathan Gesell's avatar Jonathan Gesell
Browse files

Added Hisat2 alignment step. Also made files transferable via links.

parent 19195674
Branches
Tags
2 merge requests!37v0.0.1,!15Resolve "process_align"
......@@ -5,10 +5,10 @@ process {
// Process specific configuration
withName:splitData {
container = 'docker://bicf/gudmaprbkfilexfer:1.1'
container = 'docker://bicf/gudmaprbkfilexfer:1.3'
}
withName:getData {
container = 'docker://bicf/gudmaprbkfilexfer:1.1'
container = 'docker://bicf/gudmaprbkfilexfer:1.3'
}
withName:trimData {
container = 'docker://bicf/trimgalore:1.1'
......
......@@ -17,6 +17,29 @@ bdbag = Channel
outDir = params.outDir
logsDir = "${outDir}/Logs"
/*
* Pass in programs from the scripts directory, and any default files for later
*/
/*
*Checking the species and spike-in status
*/
if (params.spikein) {
if (params.species == "human") {
reference = file ("/project/BICF/BICF_Core/s181706/github/gudmap/rna-seq/References/GRCh38.p12-S/hisat2")
} else if (params.species == "mouse") {
reference = file ("/project/BICF/BICF_Core/s181706/github/gudmap/rna-seq/References/GRCm38.P6-S/hisat2")
}
} else if (params.species == "mouse") {
reference = file ("/project/BICF/BICF_Core/s181706/github/gudmap/rna-seq/References/GRCm38.P6/hisat2")
} else if (params.species == "human") {
reference = file ("/project/BICF/BICF_Core/s181706/github/gudmap/rna-seq/References/GRCh38.p12/hisat2")
} else {
print ("Warning: Reference genome not specified, defaulting to GRCm38.P6 with NO spike-in")
reference = file ("/project/BICF/BICF_Core/s181706/github/gudmap/rna-seq/References/GRCm38.P6/hisat2")
}
/*
* splitData: split bdbag files by replicate so fetch can occure in parallel, and rename files to replicate rid
*/
......@@ -112,5 +135,13 @@ process alignReads {
input:
set repID, fqs from aligning
file reference
output:
set repID, file ("${repID}.aln.gz"), file ("${repID}.unal.gz"), file ("${repID}.sam")
script:
"""
hisat2 -p `nproc` --add-chrname --mm --al-gz ${repID}.aln.gz --un-gz ${repID}.unal.gz -S ${repID}.sam -x ${reference}/genome -1 ${fqs[0]} -2 ${fqs[1]}
"""
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment