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

Fix ref move after getRef datahub pull

parent c8a7ab57
Branches
Tags
2 merge requests!58Develop,!45Resolve "Move references to GUDMAP/RBK"
Pipeline #8145 failed with stages
in 19 minutes and 52 seconds
......@@ -783,6 +783,7 @@ process getRef {
# aws s3 cp "\${references}"/Entrez.tsv ./
elif [ ${referenceBase} == "dev.gudmap.org" ]
then
echo -e "LOG: grabbing reference files from datahub" >> ${repRID}.getRef.log
GRCv=\$(echo \${references} | grep -o \${refName}.* | cut -d '.' -f1)
GRCp=\$(echo \${references} | grep -o \${refName}.* | cut -d '.' -f2)
GENCODE=\$(echo \${references} | grep -o \${refName}.* | cut -d '.' -f3)
......@@ -796,8 +797,7 @@ process getRef {
filename=\$(echo \$(basename \${refURL}) | grep -oP '.*(?=:)')
deriva-hatrac-cli --host ${referenceBase} get \${refURL}
unzip \$(basename \${refURL})
mv \${fName}/* .
mv bed \${refName}/
mv \${fName}/data/* .
fi
echo -e "LOG: fetched" >> ${repRID}.getRef.log
"""
......
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