View source: R/setProperties.R
setDR | R Documentation |
Manually specify the dimension reduction
setDR(sc, DR, reductName = NULL)
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). |
A modified SoupChannel object for which the dimension reduction has been set.
sc = load10X(system.file('extdata','toyData',package='SoupX')) mDat = read.table(system.file('extdata','toyData','metaData.tsv',package='SoupX'),sep='\t') sc = setDR(sc,mDat[,c('tSNE_1','tSNE_2')])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.