nMolecules: Number of molecules

View source: R/n.R

nGenesR Documentation

Number of molecules

Description

Returns the number of molecules in the raw count matrix of the chosen assay.

Usage

nGenes(object)

nMolecules(object, assay_name = activeAssay(object))

nMetabolites(object)

nProteins(object)

Arguments

object

An object of class SPATA2 or, in case of S4 generics, objects of classes for which a method has been defined.

assay_name

Only relevant if the SPATA2 object contains more than one assay: Denotes the assay of interest and thus the molecular modality to use. Defaults to the active assay as set by activateAssay().

Details

The functions nGenes(), nProteins(), nMetabolites() are wrappers for objects that contain the corresponding molecular modality and do not have an assay_name argument.

Value

Numeric value.


theMILOlab/SPATA2 documentation built on Feb. 8, 2025, 11:41 p.m.