setCountMatrix | R Documentation |
Functions to set data matrices of different assays.
setCountMatrix(object, count_mtr, assay_name = activeAssay(object), ...)
setProcessedMatrix(
object,
proc_mtr,
name,
assay_name = activeAssay(object),
...
)
object |
An object of class |
count_mtr |
The count matrix with rownames corresponding to the feature names and the column names corresponding to the barcodes. |
assay_name |
Only relevant if the |
... |
Used to absorb deprecated arguments or functions. |
proc_mtr |
The processed matrix with rownames corresponding to the feature names and the column names corresponding to the barcodes. |
name |
Character value. The name with which to refer to the processed matrix later on. |
The updated input object, containing the added, removed or computed results.
SPATA2
in general distinguishes between two types of data matrices.
There are count matrices containing the raw counts, and processed matrices
that contain processed expression data obtained via single or subsequent processing
steps such as log normalization, scaling, denoising etc. Count matrices are always
stored in slot @mtr_counts in their MolecularAssay
object and do not need a name. Processed
matrices are stored in a list stored in slot @mtr_proc of the MolecularAssay
object
and therefore need further naming. Their name should correspond to the method
with which they were processed. E.g. log_norm if it was created by log normalizing
the counts. Or scaled if it was created by subsequent scaling of the log_norm
matrix.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.