Last active
March 11, 2019 21:24
-
-
Save cyklee/709a6045729faea926e0af82284c1827 to your computer and use it in GitHub Desktop.
Count the total number of reads in a collection of fastq files
This file contains 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
for i in *.fastq; do | |
echo $(cat $i| wc -l)/4 | bc >> count.txt # can use zcat for gzipped files | |
done | |
calc `paste -sd+ count.txt` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment