condenseTaxa | R Documentation |
Take a table of taxonomic assignments, e.g. assignments from hits to a read, and condense it to a single vector with NAs where there are disagreements between the hits.
condenseTaxa(taxaTable, groupings = rep(1, nrow(taxaTable)))
taxaTable |
a matrix or data.frame with hits on the rows and various levels of taxonomy in the columns |
groupings |
a vector of groups e.g. read queries to condense taxa within |
a matrix with ncol(taxaTable)
taxonomy columns with a row for each unique id (labelled on rownames) with NAs where there was not complete agreement for an id
taxas<-matrix(c(
'a','b','c','e',
'a','b','d','e'
),nrow=2,byrow=TRUE)
condenseTaxa(taxas)
condenseTaxa(taxas[c(1,2,2),],c(1,1,2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.