as.matrix.Assessment: Tabulate the Category Assignments for Assessment Results...

Description Usage Arguments Details Value See Also Examples

View source: R/Assessment-class.R

Description

The as.matrix method for Assessment and subclass Results objects

Usage

1
2
## S3 method for class 'Assessment'
as.matrix(x, ...)

Arguments

x

An object of class Assessment and subclass Results.

...

Additional arguments.

Details

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.

Value

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.

See Also

Assessment-class

Examples

1
2
3
as.matrix(readRDS(system.file("extdata",
                              "MGAS5005_PreSaved_ResultsObj_Prodigal.rds",
                              package = "AssessORF")))

AssessORF documentation built on Nov. 8, 2020, 4:52 p.m.