You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found a useful little tool that may be helpful for your reprocessing pipeline during the continous_download.sh section.
The following code takes a string containing multiple fastqs delimited by a ; and splits them into separate elements in an array:
#!/bin/bash
set -euo pipefail
# split up fastq files if there are more than one into an array
line="ftp.sra.ebi.ac.uk/vol1/fastq/SRR713/005/SRR7130925/SRR7130925_1.fastq.gz;ftp.sra.ebi.ac.uk/vol1/fastq/SRR713/005/SRR7130925/SRR7130925_2.fastq.gz"
if grep -q ";" <<< $line; then
arrURL=(${line//;/ })
else
arrURL=(${line})
fi
for URL in ${arrURL[@]}; do
echo $URL
done
I hope this helps and obviously no pressure to include it!
Simon
The text was updated successfully, but these errors were encountered:
Hi Alex,
I found a useful little tool that may be helpful for your reprocessing pipeline during the
continous_download.sh
section.The following code takes a string containing multiple fastqs delimited by a ; and splits them into separate elements in an array:
I hope this helps and obviously no pressure to include it!
Simon
The text was updated successfully, but these errors were encountered: