DNAbin2kmerFreqMatrix {BarcodingR} | R Documentation |
Calculation of kmer frequency matrices from DNAbin for both reference and query sequences.
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
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