Function chops k-mers within specified ranges of a sequence and counts them. It uses either a substring method or functionalities from the Biostrings package.
countChoppedKmers(dna.seq, starts, ends, k, method = "auto")
A k-mer-named vector of counts.
A string of sequence.
Start positions.
End positions.
Size of kmer.
Method: "Biostrings" or "substring". Default is Biostrings.