Skip to content

Instantly share code, notes, and snippets.

@cgpu
Created May 5, 2020 21:27
Show Gist options
  • Save cgpu/52272fa205958c5afd00da18aa9e6f2f to your computer and use it in GitHub Desktop.
Save cgpu/52272fa205958c5afd00da18aa9e6f2f to your computer and use it in GitHub Desktop.
while read line
do
srr=$line
numLines=$(fastq-dump -X 1 -Z --split-spot $srr | wc -l)
if [ $numLines -eq 4 ]
then
echo "$srr,single_end"
echo "$srr,single_end" >> file.log
else
echo "$srr,paired_end"
echo "$srr,paired_end" >> file.log
fi
done < /Users/admin/accession_N146_single_end.list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment