Description Usage Arguments Value Note

Generate perturbated expression from the original expression based on k-NN (k-nearest neighbor) data.

1 | ```
perturbate_knn(expression, strength = 1)
``` |

`expression` |
The original expression. The rows and columns correspond to samples and features. The expression is normalized count of features. |

`strength` |
How much perturbated. |

A perturbated expression as a `matrix`

. The matrix's
expression values are perturbated from the original expression
values. The shape of the matrix is the same as the original
expression. The dimension names of the matrix are also the same as
the original expression.

This is an API for advanced users. This API may be changed.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.