function to calculate the fraction smoothed over nearest neighbors
1 | smoothed_fraction(counts, marker, selection, nn_subset, gamma)
|
counts |
sparse matrix, containing counts (cols = cells, genes = rows) |
marker |
string, selected marker gene |
selection |
logical array, used to subset cells belonging to the selected sample |
nn_subset |
list, nearest neighbor indices and distances for cells in the sample |
gamma |
numeric, gamma-correction factor |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.