Skip to content

Instantly share code, notes, and snippets.

@MADscientist314
Created June 12, 2020 19:25
Show Gist options
  • Save MADscientist314/3763a4702704f4005b458e9983018666 to your computer and use it in GitHub Desktop.
Save MADscientist314/3763a4702704f4005b458e9983018666 to your computer and use it in GitHub Desktop.
Fastq to fasta variable loop
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
@MADscientist314
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment