Description Usage Arguments Value Examples
Given a set of parameters, this function will simulate data and then output four tSNE plots: one corresponding to clustering after no batch correction, and another three, each corresponding to clustering after one of the three batch correction methods "limma," "combat," and "mnn."
1 2 3 |
seed |
seed for reproducibility |
ncells |
The number of cells in the sequencing experiment. |
ngenes |
The number of genes per cell. |
xmus |
A vector of three numbers, representing the x-coordinates of the three cell types in a two-dimensional space before projection to the space of all genes. |
xsds |
The standard deviations of x-coordinates of the three cell types in a two-dimensional space before projection to the space of all genes. |
ymus |
A vector of three numbers, representing the y-coordinates of the three cell types in a two-dimensional space before projection to the space of all genes. |
ysds |
The standard deviations of y-coordinates of the three cell types in a two-dimensional space before projection to the space of all genes. |
prop1 |
A vector of three numbers, representing the proportions of the three cell types in the first batch. The elements of the vector must sum to 1. |
prop2 |
A vector of three numbers, representing the proportions of the three cell types in the second batch. The elements of the vector must sum to 1. |
Returns four tSNE plots (on the same figure).
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.