Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
RNA-seq
Manage
Activity
Members
Labels
Plan
Issues
12
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
GUDMAP_RBK
RNA-seq
Commits
f6c9944a
Commit
f6c9944a
authored
5 years ago
by
Jonathan Gesell
Browse files
Options
Downloads
Patches
Plain Diff
Reverted to ensure that Trim step is functional.
parent
ebb7239c
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!37
v0.0.1
,
!15
Resolve "process_align"
Pipeline
#5770
canceled with stages
in 3 minutes and 16 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
workflow/rna-seq.nf
+16
-11
16 additions, 11 deletions
workflow/rna-seq.nf
with
16 additions
and
11 deletions
workflow/rna-seq.nf
+
16
−
11
View file @
f6c9944a
...
...
@@ -22,8 +22,8 @@ logsDir = "${outDir}/Logs"
derivaConfig = Channel.fromPath("${baseDir}/conf/replicate_export_config.json")
// Define script files
script_bdbagFetch =
file
("${baseDir}/scripts/bdbagFetch.sh")
script_parseMeta =
file
("${baseDir}/scripts/parseMeta.py")
script_bdbagFetch =
Channel.fromPath
("${baseDir}/scripts/bdbagFetch.sh")
script_parseMeta =
Channel.fromPath
("${baseDir}/scripts/parseMeta.py")
/*
* splitData: split bdbag files by replicate so fetch can occure in parallel, and rename files to replicate rid
...
...
@@ -156,6 +156,7 @@ endsManual = Channel.create()
stranded = Channel.create()
spike = Channel.create()
species = Channel.create()
reference = Channel.create()
metadata.splitCsv(sep: ',', header: false).separate(
rep,
endsMeta,
...
...
@@ -180,20 +181,23 @@ if (species == "") {
exit 1
}
spike.subscribe { println "$it"}
// Setting references
if (spike) {
if (spike
== 'yes'
) {
if (species == "Homo sapiens") {
reference =
file
("/project/BICF/BICF_Core/shared/gudmap/references/GRCh38.p12-S/hisat2")
reference =
Channel.fromPath
("/project/BICF/BICF_Core/shared/gudmap/references/GRCh38.p12-S/hisat2")
} else if (species == "Mus musculus") {
reference =
file
("/project/BICF/BICF_Core/shared/gudmap/references/GRCm38.P6-S/hisat2")
reference =
Channel.fromPath
("/project/BICF/BICF_Core/shared/gudmap/references/GRCm38.P6-S/hisat2")
}
} else {
if (species == "Homo sapiens") {
reference =
file
("/project/BICF/BICF_Core/shared/gudmap/references/GRCh38.p12/hisat2")
reference =
Channel.fromPath
("/project/BICF/BICF_Core/shared/gudmap/references/GRCh38.p12/hisat2")
} else if (species == "Mus musculus") {
reference =
file
("/project/BICF/BICF_Core/shared/gudmap/references/GRCm38.P6/hisat2")
reference =
Channel.fromPath
("/project/BICF/BICF_Core/shared/gudmap/references/GRCm38.P6/hisat2")
}
}
reference.subscribe { println "$it }
/*
* trimData: trims any adapter or non-host sequences from the data
...
...
@@ -237,6 +241,7 @@ process alignReads {
val endsManual_alignReads
val stranded_alignReads
path fqs from fastqs_trimmed
val reference
output:
set repRID, file ("${repRID}.unal.gz"), file ("${repRID}.bam"), file ("${repRID}.bai")
...
...
@@ -244,10 +249,10 @@ process alignReads {
script:
"""
if [ "${endsManual_alignReads}" == 'pe' ]; then
hisat2 -p `nproc` --add-chrname --un-gz ${repRID}.unal.gz -S ${repRID}.sam -x ${reference}/genome -1 ${fqs[0]} -2 ${fqs[1]} 1>${repRID}.align.out 2>
${repRID}.align.err;
else hisat2 -p `nproc` --add-chrname --un-gz ${repRID}.unal.gz -S ${repRID}.sam -x ${reference}/genome -U ${fqs[0]} 1>${repRID}.align.out 2>
${repRID}.align.err;
hisat2 -p `nproc` --add-chrname --un-gz ${repRID}.unal.gz -S ${repRID}.sam -x ${reference}/genome -1 ${fqs[0]} -2 ${fqs[1]} 1>${repRID}.align.out 2>${repRID}.align.err;
else hisat2 -p `nproc` --add-chrname --un-gz ${repRID}.unal.gz -S ${repRID}.sam -x ${reference}/genome -U ${fqs[0]} 1>${repRID}.align.out 2>${repRID}.align.err;
fi;
samtools view -1 --threads `nproc` -o ${repRID}.bam ${repRID}.sam 1>${repRID}.align.out 2>
${repRID}.align.err;
samtools sort -@ `nproc` -O BAM ${repRID}.bam 1>${repRID}.align.out 2>
${repRID}.align.err;
samtools view -1 --threads `nproc` -o ${repRID}.bam ${repRID}.sam 1>
>
${repRID}.align.out 2>
>
${repRID}.align.err;
samtools sort -@ `nproc` -O BAM
-o
${repRID}.bam 1>
>
${repRID}.align.out 2>
>
${repRID}.align.err;
"""
}
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment