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
bd3f9cb1
Commit
bd3f9cb1
authored
5 years ago
by
Gervaise Henry
Browse files
Options
Downloads
Patches
Plain Diff
Make metadata values inputs in downstream processes
parent
7c677cf1
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!37
v0.0.1
,
!15
Resolve "process_align"
Pipeline
#5762
failed with stages
in 36 minutes and 58 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
workflow/rna-seq.nf
+12
-6
12 additions, 6 deletions
workflow/rna-seq.nf
with
12 additions
and
6 deletions
workflow/rna-seq.nf
+
12
−
6
View file @
bd3f9cb1
...
...
@@ -165,6 +165,13 @@ metadata.splitCsv(sep: ',', header: false).separate(
spike,
species
)
endsManual.into {
endsManual_trimData
endsManual_alignReads
}
stranded.into {
stranded_alignReads
}
// Exit with no species
if (species == "") {
...
...
@@ -187,10 +194,6 @@ if (spike) {
}
}
/*
* trimData: trims any adapter or non-host sequences from the data
*/
...
...
@@ -199,6 +202,7 @@ process trimData {
publishDir "${logsDir}", mode: 'copy', pattern: "\${repRID}.trimData.*"
input:
val endsManual_trimData
file(fastq) from fastqs
output:
...
...
@@ -212,7 +216,7 @@ process trimData {
ulimit -a >>${repRID}.trimData.err
# trim fastqs
if [ '${endsManual}' == 'se' ]
if [ '${endsManual
_trimData
}' == 'se' ]
then
trim_galore --gzip -q 25 --illumina --length 35 --basename ${repRID} -j `nproc` ${fastq[0]} 1>>${repRID}.trimData.log 2>>${repRID}.trimData.err;
else
...
...
@@ -229,6 +233,8 @@ process alignReads {
publishDir "${outDir}/aligned", mode: "copy"
input:
val endsManual_alignReads
val stranded_alignReads
path fqs from fastqs_trimmed
output:
...
...
@@ -236,7 +242,7 @@ process alignReads {
script:
"""
if [ "${endsManual}" == 'pe' ]; then
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;
fi;
...
...
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