<?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: Perl subroutine for Kmer !]]></title>
	<link>https://bioinformaticsonline.com/snippets/view/40763/perl-subroutine-for-kmer?</link>
	<atom:link href="https://bioinformaticsonline.com/snippets/view/40763/perl-subroutine-for-kmer?" rel="self" type="application/rss+xml" />
	<description><![CDATA[]]></description>
	
	<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/snippets/view/40763/perl-subroutine-for-kmer</guid>
	<pubDate>Thu, 30 Jan 2020 04:38:48 -0600</pubDate>
	<link>https://bioinformaticsonline.com/snippets/view/40763/perl-subroutine-for-kmer</link>
	<title><![CDATA[Perl subroutine for Kmer !]]></title>
	<description><![CDATA[<code>sub kmers {
    my $seq = shift or return;
    my $len = length $seq;

    my @kmers;
    for (my $i = 0; ($i + $KMER_SIZE) &lt;= $len; $i++) {
    	my $kmer = substr($seq, $i, $KMER_SIZE);
    	print &quot;$kmer\n&quot;;
        push @kmers, substr($seq, $i, $KMER_SIZE);
    }

    return \@kmers;
 }</code>]]></description>
	<dc:creator>BioStar</dc:creator>
</item>

</channel>
</rss>