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
bbcfbd9f
Commit
bbcfbd9f
authored
5 years ago
by
Gervaise Henry
Browse files
Options
Downloads
Patches
Plain Diff
Rename fetched fastqs and fix se/pe
parent
d6cee4a5
Branches
Branches containing commit
Tags
Tags containing commit
3 merge requests
!37
v0.0.1
,
!11
Develop
,
!8
Resolve "Add automated download of bagit through deriva"
Pipeline
#5638
passed with stage
in 7 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
workflow/rna-seq.nf
+8
-5
8 additions, 5 deletions
workflow/rna-seq.nf
workflow/scripts/bdbagFetch.sh
+5
-1
5 additions, 1 deletion
workflow/scripts/bdbagFetch.sh
with
13 additions
and
6 deletions
workflow/rna-seq.nf
+
8
−
5
View file @
bbcfbd9f
...
...
@@ -64,11 +64,12 @@ process getData {
input:
val repRID_getData
executor 'local'
path cookies, stageAs: 'deriva-cookies.txt' from bdbag
path bagit
output:
path ("*
*/*
.R{1,2}.fastq.gz") into fastqs
path ("*.R{1,2}.fastq.gz") into fastqs
script:
"""
...
...
@@ -81,7 +82,7 @@ process getData {
echo "LOG: \${replicate}" >>${repRID_getData}.getData.err
unzip ${bagit} 2>>${repRID_getData}.getData.err
echo "LOG: replicate bdbag unzipped" >>${repRID_getData}.getData.err
sh ${baseDir}/scripts/bdbagFetch.sh \${replicate} 2>>${repRID_getData}.getData.err
sh ${baseDir}/scripts/bdbagFetch.sh \${replicate}
${repRID_getData}
2>>${repRID_getData}.getData.err
echo "LOG: replicate bdbag fetched" >>${repRID_getData}.getData.err
"""
}
...
...
@@ -91,7 +92,6 @@ process getData {
*/
process trimData {
tag "${repRID_trimData}"
publishDir "${outDir}/tempOut/trimmed", mode: "symlink", pattern: "*_val_{1,2}.fq.gz"
publishDir "${logsDir}/trimData", mode: 'symlink', pattern: "\${repRID_trimData}.trimData.*"
input:
...
...
@@ -99,7 +99,8 @@ process trimData {
file(fastq) from fastqs
output:
path ("*_val_{1,2}.fq.gz", type: 'file', maxDepth: '0')
path ("*.fq.gz") into fastqs_trimmed
val ends
script:
"""
...
...
@@ -109,10 +110,12 @@ process trimData {
else
ncore=`nproc`
fi
if [
-z
${fastq[1]} ]
if [
'
${fastq[1]}
' == 'null'
]
then
ends='se'
trim_galore --gzip -q 25 --illumina --length 35 --basename ${repRID_trimData} -j \${ncore} ${fastq[0]} 1>>${repRID_trimData}.trimData.log 2>>${repRID_trimData}.trimData.err;
else
ends='pe'
trim_galore --gzip -q 25 --illumina --length 35 --paired --basename ${repRID_trimData} -j \${ncore} ${fastq[0]} ${fastq[1]} 1>>${repRID_trimData}.trimData.log 2>>${repRID_trimData}.trimData.err;
fi
"""
...
...
This diff is collapsed.
Click to expand it.
workflow/scripts/bdbagFetch.sh
+
5
−
1
View file @
bbcfbd9f
#!/bin/bash
bdbag
--resolve-fetch
all
--fetch-filter
filename
\$
*
fastq.gz
$1
\ No newline at end of file
bdbag
--resolve-fetch
all
--fetch-filter
filename
\$
*
fastq.gz
$1
for
i
in
$(
find
*
/
-name
"*.R*.fastq.gz"
)
;
do
path
=
${
2
}
$(
echo
${
i
##*/
}
|
grep
-o
"
\.
R.
\.
fastq
\.
gz"
)
;
mv
${
i
}
./
${
path
}
done
;
\ No newline at end of file
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