I have a fasta file of primer sequences and I have a csv file with the sequence ids of primer sequence pairs that I need to parse out into their own fasta files. What I need to do is extract each pair of sequences from the fasta and put them into their own fasta files.
So my files look something like this:
My fasta file of primer sequences:
>01 ACGTACGT >02 ACGTACGT >03 ACGTACGT >04 ACGTACGT
My CSV list of primer pairs:
column1,column2 01,03 02,04
Based on this example data set, what I need to end up with is 2 fasta files of the pairs of fasta sequences i.e., File1.fa will contain sequences 01 and 03 and File2.fa will contain sequences 02 and 04.
Thanks in advance!