Created
June 12, 2020 19:25
-
-
Save MADscientist314/3763a4702704f4005b458e9983018666 to your computer and use it in GitHub Desktop.
Fastq to fasta variable loop
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 n in $(cat list); | |
do | |
echo "converting $n fastq.gz to fasta"; | |
seqtk seq -a $n\_kneaddata_paired_1.fastq.gz > $n\_kneaddata_paired_1.fasta; | |
seqtk seq -a $n\_kneaddata_paired_2.fastq.gz > $n\_kneaddata_paired_2.fasta; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this is a handy for loop that converts fastq.gz files into fasta form using seqtk which I found to be much faster than using sed or fastx toolkits