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

Move new bdbag fetch code from test

parent ca7ebeeb
Branches
Tags
2 merge requests!58Develop,!56Resolve "Detect error in inferMetadata for tracking"
Pipeline #8863 failed with stages
in 2 minutes and 5 seconds
......@@ -2,15 +2,7 @@
if [ -z "${3}" ]
then
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[1,2].fastq.gz")
cp ${i} ./${path}
done
elif [ "${3}" == "TEST" ]
then
bdbag --materialize ${1} --debug
bdbag --materialize ${1} --debug
validateError=true
bdbag --validate full ${1} && validateError=false
if validateError
......@@ -27,4 +19,12 @@ then
then
exit 1
fi
for i in $(find */ -name "*R*.fastq.gz")
do
path=${2}.$(echo ${i##*/} | grep -o "R[1,2].fastq.gz")
cp ${i} ./${path}
done
elif [ "${3}" == "TEST" ]
then
bdbag --validate structure --validate-profile ${1} --debug
fi
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