View source: R/buildRangedKmerTable.R
buildRangedKmerTable | R Documentation |
Count kmers from a sequence in given ranges and build a data.table of k-mer counts.
buildRangedKmerTable(
dna.seq,
starts,
ends,
k,
method = "sliding",
chopping.method = "auto",
remove.N = TRUE
)
dna.seq |
String of sequence. |
starts |
Start positions. |
ends |
End positions. |
k |
Size of kmer. |
method |
Method options: "sliding" or "chopping". Chopping consumes a lot of memory for extremely long sequence using "substring" method. Using "Biostrings" for k > 12 is memory consuming. Default is "sliding". |
chopping.method |
Chopping method: "Biostrings" or "substring". Default is "auto". |
remove.N |
Remove unknown base N? Default is TRUE. |
A data.table
object with column kmer and N.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.