powered by
Calculation of kmer frequency matrices from DNAbin for both reference and query sequences.
DNAbin2kmerFreqMatrix(ref, que, kmer = kmer)
Object of class "DNAbin" used as a reference dataset, which contains taxon information.
Object of class "DNAbin", which needs to be inferred.
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.
zhangab2008(at)mail.cnu.edu.cn
# NOT RUN { 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 # }
Run the code above in your browser using DataLab