consensus: create a consensus vector from several classification vectors

Description Usage Arguments Value Examples

Description

Create a consensus from several classification vectors

Usage

1
consensus(mtrx, threshold=.6)

Arguments

mtrx

a matrix of n concatenated classification vectors.

threshold

the minimum percentage of identical classification calls required for an unambiguous consensus call.

Value

a vector the same length as the number of rows in the input matrix with a population classification call for each element

Examples

1
2
3
4
5
6
7
8
vct.paths <- sapply(c(1,439,440), function(i) 
		system.file("extdata","seaflow_cruise","2011_001", 
			paste("1.evt.opp.",i,'-class.vct',sep=''), 
				package="flowPhyto"))
mat <- do.call(cbind,lapply(vct.paths, read.delim))
v <- consensus(mtrx=mat)
table(v$pop)
aggregate(v$support,list(v$pop), mean)

armbrustlab/flowPhyto documentation built on May 10, 2019, 1:40 p.m.