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

Initial run for align.

parents 04c4e3da 76102f6c
Branches
Tags
2 merge requests!37v0.0.1,!15Resolve "process_align"
Pipeline #5758 failed with stages
in 31 minutes and 49 seconds
......@@ -42,7 +42,30 @@ if (params.spikein) {
derivaConfig = Channel.fromPath("${baseDir}/conf/replicate_export_config.json")
/*
* getData: get bagit file from consortium
* 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
*/
process getBag {
executor 'local'
......@@ -158,4 +181,3 @@ process alignReads {
samtools sort -@ `nproc` -O BAM ${repRID}.bam 1>${repRID}.align.out 2> ${repRID}.align.err;
"""
}
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