import_weights: Assigns a cell type 'weights' matrix to an 'RCTD' object

View source: R/postProcessing.R

import_weightsR Documentation

Assigns a cell type 'weights' matrix to an RCTD object

Description

Assigns a cell type 'weights' matrix to an RCTD object

Usage

import_weights(myRCTD, weights)

Arguments

myRCTD

a RCTD object to be assigned weights.

weights

a matrix of weights (pixels by cell types). weights must be normalized to have rows sum to 1. Furthermore, rownames and colnames must be assigned as pixel names and cell types respectively.

Value

the RCTD object with weights assigned.


dmcable/RCTD documentation built on Feb. 24, 2024, 11:03 p.m.