Created
May 5, 2020 21:27
-
-
Save cgpu/52272fa205958c5afd00da18aa9e6f2f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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