setDR: Manually set dimension reduction for a channel
Description
Manually specify the dimension reduction
Usage
setDR(sc, DR, reductName = NULL)
Value
A modified SoupChannel object for which the dimension reduction has been set.
Arguments
sc
A SoupChannel object.
DR
The dimension reduction coordinates (e.g., tSNE). This must be a data.frame, with two columns giving the two dimension reduction coordinates. The data.frame must either have row names matching the row names of sc$metaData, or be ordered in the same order as sc$metaData.
reductName
What to name the reduction (defaults to column names provided).