as.matrix.Assessment {AssessORF} | R Documentation |
The as.matrix
method for Assessment
and subclass Results
objects
## S3 method for class 'Assessment' as.matrix(x, ...)
x |
An object of class |
... |
Additional arguments. |
as.matrix.Assessment
tabulates and returns the number of times each category appears in the CategoryAssignments
vector within the given Results
object. If the number of genes for any the 14 main gene / ORF categories is zero, a
count (of zero) will still be included for that category.
A one-row matrix with the counts for the number of genes/ORFs that fall into each category. The corresponding category codes serve as the column names, and the name of the row is the strain ID.
as.matrix(readRDS(system.file("extdata", "MGAS5005_PreSaved_ResultsObj_Prodigal.rds", package = "AssessORF")))