Description Usage Arguments Value Examples
Extract the distance to each nearest neighbor for specified cell-types, normalized by downsampling each cell-type to the same size (the smallest population from among the specified markers), calculates across all samples
1 2 3 4 5 6 7 8 | normal_nearest_neighbor(data, markers, n_resamples = 500,
minimum_cells = 50, quantiles = c(0.05, 0.25, 0.5, 0.75, 0.95),
grouped_sample = TRUE)
## S4 method for signature 'ImageSet'
normal_nearest_neighbor(data, markers, n_resamples = 500,
minimum_cells = 50, quantiles = c(0.05, 0.25, 0.5, 0.75, 0.95),
grouped_sample = TRUE)
|
data |
IrisSpatialFeatures ImageSet object |
markers |
vector of marker names to use |
n_resamples |
number of times to resample each frame (default:500) |
minimum_cells |
the smallest number of cells to consider a frame (default:50) |
quantiles |
vector of numeric fractions to include in vector to show the mean distance calculated across resamplings (default:c(0.05,0.25,0.5,0.75,0.95)) |
grouped_sample |
TRUE/FALSE group samples together (default:TRUE) |
data.frame
1 2 3 4 | #loading pre-read dataset
dataset <- IrisSpatialFeatures_data
dataset <- extract_nearest_neighbor(dataset)
normal_nearest_neighbor(dataset,c("SOX10+ PDL1+","SOX10+ PDL1-"),10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.