Create an S4 exprObj
Usage
createExprObj(
expression_data,
name = "test",
spat_unit = "cell",
feat_type = "rna",
provenance = NULL,
misc = NULL,
expression_matrix_class = c("dgCMatrix", "DelayedArray")
)
Arguments
- expression_data
expression data
- name
name of exprObj
- spat_unit
spatial unit (e.g. "cell")
- feat_type
feature type (e.g. "rna", "dna", "protein")
- provenance
origin data of expression information (if applicable)
- misc
misc
- expression_matrix_class
class of expression matrix to use (e.g. 'dgCMatrix', 'DelayedArray')
Examples
x_expr <- readRDS(system.file("extdata/toy_matrix.RDS",
package = "GiottoClass"
))
createExprObj(expression_data = x_expr)
#> An object of class exprObj : "test"
#> spat_unit : "cell"
#> feat_type : "rna"
#>
#> contains:
#> 10 x 10 sparse Matrix of class "dgCMatrix"
#>
#> a . . . . . . . . . .
#> b . . . . 1 . . . . .
#> c . . . . . . 1 . . .
#> d . . . . . . . . . 1
#>
#> ........suppressing 2 rows in show(); maybe adjust options(max.print=, width=)
#>
#> g 1 . . . . . . . . .
#> h 1 . . . . . . . . 1
#> i . . . . . . . . . .
#> j . . . 1 . 1 . . . .
#>
#> First four colnames:
#> A B C D