<?xml version='1.0'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:atom="http://www.w3.org/2005/Atom" >
<channel>
	<title><![CDATA[BOL: Extract fasta sequences with ids in another file !]]></title>
	<link>https://bioinformaticsonline.com/snippets/view/43612/extract-fasta-sequences-with-ids-in-another-file?</link>
	<atom:link href="https://bioinformaticsonline.com/snippets/view/43612/extract-fasta-sequences-with-ids-in-another-file?" rel="self" type="application/rss+xml" />
	<description><![CDATA[]]></description>
	
	<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/snippets/view/43612/extract-fasta-sequences-with-ids-in-another-file</guid>
	<pubDate>Sun, 28 Nov 2021 03:46:22 -0600</pubDate>
	<link>https://bioinformaticsonline.com/snippets/view/43612/extract-fasta-sequences-with-ids-in-another-file</link>
	<title><![CDATA[Extract fasta sequences with ids in another file !]]></title>
	<description><![CDATA[<code>#Ids are in test.txt - one ids per line
#sequences are in test.fa

grep -w -A 2 -f  test.txt test.fa --no-group-separator

# seqtk
seqtk subseq test.fa test.txt 

#faSomeRecods
faSomeRecords in.fa listFile out.fa

# seqkit
seqkit grep -n -f list.txt sequences.fas &gt; newfile2.fas</code>]]></description>
	<dc:creator>Surabhi Chaudhary</dc:creator>
</item>

</channel>
</rss>