How to extract specific fasta files ?
I had a text file with a list of sequence ID's 1....1000. (prefix - OG00*)
OG0010960 OG0010966 OG0010968 OG0010972 OG0010979 OG0010980 OG0010981 OG0010982 OG0010983 OG0010984
In a directory, I had 66170 fasta files each fasta seq has a unique ID.
OG0066161.fa OG0066162.fa OG0066162.fa OG0056185.fa OG0056185.fa OG0056185.fa OG0000001.fa OG0000002.fa
I'm wish to extract only the fasta files of the given ID's in the text file ?
Need some help, I tried to do using grep it doesn't work out.
• 155 views