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

Fix exists in upload processed file process

parent 6534cc16
Branches
Tags
2 merge requests!58Develop,!53Resolve "process_derivaUpload"
...@@ -1135,7 +1135,7 @@ process dataQC { ...@@ -1135,7 +1135,7 @@ process dataQC {
output: output:
path "${repRID}_tin.hist.tsv" into tinHist path "${repRID}_tin.hist.tsv" into tinHist
path "${repRID}_tin.med.csv" into tinMedInfer_fl path "${repRID}_tin.med.csv" into tinMedInfer_fl
path "${repRID}.insertSize.inner_distance_freq.txt" into innerDistance path "${repRID}_insertSize.inner_distance_freq.txt" into innerDistance
script: script:
""" """
...@@ -1531,7 +1531,7 @@ process uploadProcessedFile { ...@@ -1531,7 +1531,7 @@ process uploadProcessedFile {
exist=\$(curl -s https://${source}/ermrest/catalog/2/entity/RNASeq:Processed_File/Replicate=${repRID}) exist=\$(curl -s https://${source}/ermrest/catalog/2/entity/RNASeq:Processed_File/Replicate=${repRID})
if [ "\${exist}" != "[]" ] if [ "\${exist}" != "[]" ]
then then
rids=\$(echo $exist | grep -o '\\"RID\\":\\".\\{7\\}' | sed 's/^.\\{7\\}//') rids=\$(echo \${exist} | grep -o '\\"RID\\":\\".\\{7\\}' | sed 's/^.\\{7\\}//')
for rid in \${rids} for rid in \${rids}
do do
python3 deleteEntry.py -r \${rid} -t Processed_File -o ${source} -c \${cookie} python3 deleteEntry.py -r \${rid} -t Processed_File -o ${source} -c \${cookie}
......
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