Skip to content
Snippets Groups Projects
Commit 8792bf4b authored by Gervaise Henry's avatar Gervaise Henry :cowboy:
Browse files

Start changing model

parent 04536845
3 merge requests!58Develop,!54Resolve "Add an option to not upload",!53Resolve "process_derivaUpload"
Pipeline #8533 failed with stages
in 1 hour, 29 minutes, and 29 seconds
{ {
"bag": { "bag": {
"bag_name": "Replicate_{rid}", "bag_name": "{rid}_inputBag",
"bag_algorithms": [ "bag_algorithms": [
"md5" "md5"
], ],
......
...@@ -157,7 +157,7 @@ process getBag { ...@@ -157,7 +157,7 @@ process getBag {
path replicateExportConfig path replicateExportConfig
output: output:
path ("Replicate_*.zip") into bag path ("*.zip") into bag
when: when:
inputBagForce == "" inputBagForce == ""
...@@ -222,7 +222,7 @@ process getData { ...@@ -222,7 +222,7 @@ process getData {
echo -e "LOG: linked" >> ${repRID}.getData.log echo -e "LOG: linked" >> ${repRID}.getData.log
# get bag basename # get bag basename
replicate=\$(basename "${inputBag}" | cut -d "." -f1) replicate=\$(basename "${inputBag}" | cut -d "_" -f1)
echo -e "LOG: bag replicate name \${replicate}" >> ${repRID}.getData.log echo -e "LOG: bag replicate name \${replicate}" >> ${repRID}.getData.log
# unzip bag # unzip bag
...@@ -1511,10 +1511,11 @@ process outputBag { ...@@ -1511,10 +1511,11 @@ process outputBag {
hostname > ${repRID}.outputBag.log hostname > ${repRID}.outputBag.log
ulimit -a >> ${repRID}.outputBag.log ulimit -a >> ${repRID}.outputBag.log
mkdir -p ./deriva/Seq/Workflow_Runs/${studyRID}/${executionRunRID}/ mkdir -p ./deriva/Seq/pipeline/${studyRID}/${executionRunRID}/
cp ${bam} ./deriva/Seq/Workflow_Runs/${studyRID}/${executionRunRID}/ cp ${bam} ./deriva/Seq/pipeline/${studyRID}/${executionRunRID}/
cp ${bigwig} ./deriva/Seq/Workflow_Runs/${studyRID}/${executionRunRID}/ cp ${bai} ./deriva/Seq/pipeline/${studyRID}/${executionRunRID}/
cp ${counts} ./deriva/Seq/Workflow_Runs/${studyRID}/${executionRunRID}/ cp ${bigwig} ./deriva/Seq/pipeline/${studyRID}/${executionRunRID}/
cp ${counts} ./deriva/Seq/pipeline/${studyRID}/${executionRunRID}/
cookie=\$(cat credential.json | grep -A 1 '\\"${source}\\": {' | grep -o '\\"cookie\\": \\".*\\"') cookie=\$(cat credential.json | grep -A 1 '\\"${source}\\": {' | grep -o '\\"cookie\\": \\".*\\"')
cookie=\${cookie:20:-1} cookie=\${cookie:20:-1}
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
if [ -z "${3}" ] if [ -z "${3}" ]
then then
bdbag --resolve-fetch all --fetch-filter filename\$*fastq.gz ${1} bdbag --resolve-fetch all --fetch-filter filename\$*fastq.gz ${1}_inputBag
for i in $(find */ -name "*R*.fastq.gz") for i in $(find */ -name "*R*.fastq.gz")
do do
path=${2}.$(echo ${i##*/} | grep -o "R[1,2].fastq.gz") path=${2}.$(echo ${i##*/} | grep -o "R[1,2].fastq.gz")
......
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