Description Usage Arguments Value Author(s) References Examples
View source: R/DNAbin2kmerFreqMatrix.R
Calculation of kmer frequency matrices from DNAbin for both reference and query sequences.
1 | DNAbin2kmerFreqMatrix(ref, que, kmer = kmer)
|
ref |
Object of class "DNAbin" used as a reference dataset, which contains taxon information. |
que |
Object of class "DNAbin", which needs to be inferred. |
kmer |
a numeric to indicate the length of kmer used. |
kmer frequency matrices for both ref and que sequences, but only based on kmers found in ref!!! new kmers in que will be ignored.
Ai-bing ZHANG, PhD. CNU, Beijing, CHINA. zhangab2008(at)mail.cnu.edu.cn
zhangab2008(at)mail.cnu.edu.cn
1 2 3 4 5 | data(TibetanMoth)
ref<-as.DNAbin(as.character(TibetanMoth[1:50,]))
que<-as.DNAbin(as.character(TibetanMoth[51:60,]))
out<-DNAbin2kmerFreqMatrix(ref,que,kmer=3)
out
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.