Our Sponsors



Download BioinformaticsOnline(BOL) Apps in your chrome browser.




Perl subroutine to creating kmer !

  • Public
By Rahul Nayak 1768 days ago
sub k_mers { my ($sequence, $k) = @_; my $len = length($sequence); my @result = (); for (my $i = 0; $i <= $len-$k; $i++) { push(@result, substr($sequence, $i, $k)); } return @result; }