R/mean_of_top_and_bottom_cells.R
mean_of_top_and_bottom_cells.Rd
Report the results in an Excel workbook in the same directory
as csd_path
.
mean_of_top_and_bottom_cells(
csd_path = NULL,
expression_cols,
top_count = 20,
bottom_percentile = 0.1,
adjacent_max = 3,
tissue_categories = NULL,
.by = "Slide ID",
out_path = NULL
)
Path to a merged cell seg data, or NULL. If NULL, a file chooser is opened to allow file selection.
Vector of column names to report.
The number of top-expressing cells to select for averaging.
The cutoff for the bottom percentile cells.
The maximum ratio between expression of adjacent fluors
Tissue categories to include, or NULL for all
The column to aggregate by
The path to the output file; if NULL
, a date-stamped file
will be written to the same directory as csd_path
.
The path to the generated file.