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

Fix cp error for fastq names with multiple R1/2

parent ea8a2c38
Branches
Tags
2 merge requests!37v0.0.1,!33Resolve "process_qc"
Pipeline #6906 failed with stages
in 8 minutes and 17 seconds
......@@ -5,7 +5,7 @@ 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
path=${2}.$(echo ${i##*/} | grep -o "R[1,2].fastq.gz")
cp ${i} ./${path}
done
elif [ "${3}" == "TEST" ]
......
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