Learn R Programming

BarcodingR (version 1.0-3)

consensus.identify: Consensus Identification

Description

Make consensus for identifications from two or more methods, usually for a set of query sequences.

Usage

consensus.identify(identifiedBy2orMore)

Arguments

identifiedBy2orMore

an object of class "data.frame", containing (queIDs, as rownames), identifiedByMethod1,identifiedByMethod2,and so on.

Value

a data frame with consensus.identification, and corresponding votes.

Examples

Run this code
# NOT RUN {
queIDs<-c("q1","q2","q3")

bp<-c("sp1","sp1","sp1")
bpk<-c("sp1","sp1","sp2")
bayes<-c("sp2","sp1","sp3")
fuzzyID<-c("sp1","sp1","sp2")
identifiedBy2orMore<-data.frame(bp=bp,bpk=bpk,bayes=bayes,fuzzyID=fuzzyID)
rownames(identifiedBy2orMore)<-queIDs<-c("q1","q2","q3")
ccs<-consensus.identify(identifiedBy2orMore)
# }

Run the code above in your browser using DataLab