View source: R/02_batch_correct.R
create_som | R Documentation |
The function uses the kohonen package to create a Self-Organizing Map. It is used to segregate the cells for the batch correction to make the correction less affected by samples with high abundances of a particular cell type.
create_som(df, markers = NULL, seed = 473, rlen = 10, xdim = 8, ydim = 8)
df |
tibble with expression values |
markers |
Markers to normalize. If NULL, markers will be found using the |
seed |
The seed to use when creating the SOM. |
rlen |
Number of times the data is presented to the SOM network |
xdim |
The x-dimension size of the SOM. |
ydim |
The y-dimension size of the SOM. |
A vector of clustering labels
Other batch:
batch_correct()
,
correct_data()
,
normalize()
,
quantile_norm()
## Not run:
labels <- uncorrected %>%
create_som()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.