<?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 all fasta sequences except ids !]]></title>
	<link>https://bioinformaticsonline.com/snippets/view/43727/extract-all-fasta-sequences-except-ids?</link>
	<atom:link href="https://bioinformaticsonline.com/snippets/view/43727/extract-all-fasta-sequences-except-ids?" rel="self" type="application/rss+xml" />
	<description><![CDATA[]]></description>
	
	<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/snippets/view/43727/extract-all-fasta-sequences-except-ids</guid>
	<pubDate>Wed, 26 Jan 2022 20:47:07 -0600</pubDate>
	<link>https://bioinformaticsonline.com/snippets/view/43727/extract-all-fasta-sequences-except-ids</link>
	<title><![CDATA[Extract all fasta sequences except ids !]]></title>
	<description><![CDATA[<code>awk &#039;BEGIN{while((getline&lt;&quot;omi_ids_updated.txt&quot;)&gt;0)l[&quot;&gt;&quot;$1]=1}/^&gt;/{f=!l[$1]}f&#039; genomic.fna &gt; filtered_without_omi.fasta

#extract subseq
seqtk subseq omi_ids.fa omi_single_id.txt &gt; omi_single_id.fa

#cat omi and all the rest
cat omi_single_id.fa filtered_without_omi.fasta &gt; omi_single_id_plus_all.fa

#Extract unique kmer
./uniquekmer -f omi_single_id_plus_all.fa -k 19

# Extract the kmer of omi
seqtk subseq kmercollection.fasta ../omi_single_id.txt &gt; omi_kmer19.fa

#reformat to 19mer
reformat.sh in=omi_kmer19.fa out=omi_kmer19_formated.fa fastawrap=19

#Extract and number the kmers
perl storeKmer.pl omi_kmer19_formated.fa &gt; omi_kmer19_formated_numbered.fa

# cat all *.rd file
cat *.rd &gt; all_reads_hits

#count the lines in each file -- go in folder
for FILE in *; do wc -l $FILE; done &gt; all_hits_lines.txt</code>]]></description>
	<dc:creator>Rahul Nayak</dc:creator>
</item>

</channel>
</rss>