zscore_bins | R Documentation |
zscore_bins Calculate zscores from rpm scaled data. Adapted from Michael Mina et al. 2019 DOI: 10.1126/science.aay6485
zscore_bins(
rpm_control,
rpm_sample,
binsize = 300,
include_percentile = c(0.05, 0.95),
ignore_cols = c(),
export_bins = TRUE,
sd_min = NULL
)
rpm_control |
Reads per million (counts per million) data frame of control data from which to determine bins (e.g. beads only). Peptide order should match that of rpm_sample. |
rpm_sample |
Reads per million (counts per million) data frame of sample data for which to calculate z-scores. Peptide order should match that of rpm_control |
binsize |
Number of peptides per bin (default 300) |
include_percentile |
Peptide percentiles range to include in mean and sd calculation (default 0.05, 0.95) |
ignore_cols |
Column names to exclude from calculation (e.g. id column) |
export_bins |
Logical. if true, include a column called ranks indicating bins based on rpm_control values |
sd_min |
Default value NULL. If set to a numeric value or vector, can be used to impose a floor to the standard deviation. If a single value is given, the same floor is applied to the standard deviation of each bin. If a vector is provided, each value is applied sequentially. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.