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

Start changing model

parent 04536845
Branches
Tags
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_name": "Replicate_{rid}",
"bag_name": "{rid}_inputBag",
"bag_algorithms": [
"md5"
],
......
......@@ -157,7 +157,7 @@ process getBag {
path replicateExportConfig
output:
path ("Replicate_*.zip") into bag
path ("*.zip") into bag
when:
inputBagForce == ""
......@@ -222,7 +222,7 @@ process getData {
echo -e "LOG: linked" >> ${repRID}.getData.log
# 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
# unzip bag
......@@ -1511,10 +1511,11 @@ process outputBag {
hostname > ${repRID}.outputBag.log
ulimit -a >> ${repRID}.outputBag.log
mkdir -p ./deriva/Seq/Workflow_Runs/${studyRID}/${executionRunRID}/
cp ${bam} ./deriva/Seq/Workflow_Runs/${studyRID}/${executionRunRID}/
cp ${bigwig} ./deriva/Seq/Workflow_Runs/${studyRID}/${executionRunRID}/
cp ${counts} ./deriva/Seq/Workflow_Runs/${studyRID}/${executionRunRID}/
mkdir -p ./deriva/Seq/pipeline/${studyRID}/${executionRunRID}/
cp ${bam} ./deriva/Seq/pipeline/${studyRID}/${executionRunRID}/
cp ${bai} ./deriva/Seq/pipeline/${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=\${cookie:20:-1}
......
......@@ -2,7 +2,7 @@
if [ -z "${3}" ]
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")
do
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