Given metacells (usually from RNA data), project ATAC counts to get a McCounts object
Source:R/McCounts.R
scc_to_mcc.Rd
Given cell to metacell association, summarise atac read counts to generate a McCounts object. This can take a while - around 5 minutes using 24 cores on the PBMC dataset.
Arguments
- sc_counts
A ScCounts object
- cell_to_metacell
a data.frame with columns
cell_id
andmetacell
containing the mapping from single cell names to metacell names, or the name of an 'h5ad' file containing this information at the 'obs' slot. In such a case, the 'obs' slot should contain a column namedmetacell
and the rownames should be the cell names.- ignore_metacells
a vector of metacells to ignore. Default: -1, -2 (the "outliers" metacell in the metacell2 python package).
Examples
if (FALSE) {
data(cell_to_metacell_pbmc_example)
scc_to_mcc(sc_counts, cell_to_metacell_pbmc_example)
}