powered by
Estimate the occurance frequency of k-mers in a reference sequence.
kmerFrequency(ref, n = 1e4, k = 1, ranges = as(seqinfo(ref), "GRanges"))
The k-mer frequency is estimated by random sampling of 'n' locations across the specified 'ranges' of the reference sequence.
library(BSgenome.Hsapiens.1000genomes.hs37d5) kmer_freq = kmerFrequency(BSgenome.Hsapiens.1000genomes.hs37d5, 1e2, 3)
Run the code above in your browser using DataLab