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
c2b05eaa
Commit
c2b05eaa
authored
5 years ago
by
Jonathan Gesell
Browse files
Options
Downloads
Patches
Plain Diff
Updated for concise output files
parent
9c845c6e
Branches
Branches containing commit
Tags
Tags containing commit
3 merge requests
!37
v0.0.1
,
!4
Develop
,
!2
Resolve "process_getData"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
workflow/rna-seq.nf
+17
-21
17 additions, 21 deletions
workflow/rna-seq.nf
workflow/scripts/bdbagFetch.sh
+5
-2
5 additions, 2 deletions
workflow/scripts/bdbagFetch.sh
with
22 additions
and
23 deletions
workflow/rna-seq.nf
+
17
−
21
View file @
c2b05eaa
#!/usr/bin/env nextflow
// Define input variables
params.deriva = "
${baseDir}/../test_data
/deriva-cookies.txt"
params.deriva = "
/project/BICF/BICF_Core/shared/gudmap/cookies
/deriva-cookies.txt"
params.bdbag = "${baseDir}/../test_data/Study_Q-Y4H0.zip"
params.outDir = "${baseDir}/../output"
// Parse input variables
deriva = file(params.deriva)
deriva = file(params.deriva
, checkIfExists: 'true'
)
bdbag = Channel
.fromPath(params.bdbag)
.ifEmpty { exit 1, "bdbag zip file not found: ${params.bdbag}" }
...
...
@@ -19,10 +19,10 @@ outDir = params.outDir
*/
process splitData {
tag "${bdbag.baseName}"
publishDir "${outDir}/temp/${task.process}", mode: "symlink"
input:
file bdbag
path cookies, stageAs: 'cookies.txt' from deriva
output:
file("Replicate_*.zip") into bdbagSplit mode flatten
...
...
@@ -34,48 +34,44 @@ process splitData {
"""
hostname
ulimit -a
ln -sf `readlink -e
${deriva}
` ~/.bdbag/deriva-cookies.txt
echo LOG: deriva cookie linked
study=`echo "${bdbag}" | cut -d'.' -f1`
echo LOG: \${study}
ln -sf `readlink -e
cookies.txt
` ~/.bdbag/deriva-cookies.txt
echo
"
LOG: deriva cookie linked
"
study=`echo "${bdbag}" | cut -d
'.' -f1`
echo
"
LOG: \${study}
"
unzip ${bdbag}
echo LOG: bdgag unzipped
echo
"
LOG: bdgag unzipped
"
python3 ${baseDir}/scripts/modifyFetch.py --fetchFile \${study}
echo LOG: fetch file filtered for only .fastq.gz
echo
"
LOG: fetch file filtered for only .fastq.gz
"
python3 ${baseDir}/scripts/splitFetch.py --fetchFile \${study}
echo LOG: fetch file split by replicates
echo
"
LOG: fetch file split by replicates
"
sh ${baseDir}/scripts/splitBag.sh \${study}
echo LOG: bag recreated with replicate split fetch file
echo
"
LOG: bag recreated with replicate split fetch file
"
"""
}
println {${http_proxy}}
println {${https_proxy}}
/*
* getData: fetch study files from consortium with downloaded bdbag.zip
*/
process getData {
tag "${rep.baseName}"
publishDir "${outDir}/temp
/${task.process}
", mode: "symlink"
publishDir "${outDir}/temp
Out/fastqs
", mode: "symlink"
input:
each rep from bdbagSplit
output:
file("**/
*.R*.fastq.gz") into fastq
path ("
*.R*.fastq.gz"
, type: 'file', maxDepth: '0'
) into fastq
script:
"""
hostname
ulimit -a
echo LOG:\${http_proxy}
export https_proxy=\${http_proxy}
replicate=\$(
echo
"${rep}" | cut -d'.' -f1
| rev | cut -f1 -d '/' | rev
)
echo LOG: \${replicate}
replicate=\$(
basename
"${rep}" | cut -d
'.' -f1)
echo
"
LOG: \${replicate}
"
unzip ${rep}
echo LOG: replicate bdbag unzipped
echo
"
LOG: replicate bdbag unzipped
"
sh ${baseDir}/scripts/bdbagFetch.sh \${replicate}
echo LOG: replicate bdbag fetched
echo
"
LOG: replicate bdbag fetched
"
"""
}
This diff is collapsed.
Click to expand it.
workflow/scripts/bdbagFetch.sh
+
5
−
2
View file @
c2b05eaa
#!/bin
#!/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
mv
${
i
}
.
;
done
;
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