Learn R Programming

kmeRtone (version 1.0)

countChoppedKmers: 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.

Description

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.

Usage

countChoppedKmers(dna.seq, starts, ends, k, method = "auto")

Value

A k-mer-named vector of counts.

Arguments

dna.seq

A string of sequence.

starts

Start positions.

ends

End positions.

k

Size of kmer.

method

Method: "Biostrings" or "substring". Default is Biostrings.