View source: R/compute_metrics.R
reportMissingValues | R Documentation |
The function computes four metrics to report missing values in single-cell proteomics.
reportMissingValues(object, i, by = NULL)
object |
An object of class QFeatures. |
i |
The index of the assay in |
by |
A vector of length equal to the number of columns in
assay |
A data.frame
with groups as rows and 5 columns:
LocalSensitivityMean
: the average number of features per cell.
LocalSensitivitySd
: the standard deviation of the local
sensitivity.
TotalSensitivity
: the total number of features found in the
dataset.
Completeness
: the proportion of values that are not missing in
the data.
NumberCells
: the number of cells in the dataset.
data("scp1")
## Define the identification matrix
peps <- scp1[["peptides"]]
assay(peps) <- !is.na(assay(peps))
scp1 <- addAssay(scp1, peps, "id")
## Report metrics
reportMissingValues(scp1, "id")
## Report metrics by sample type
reportMissingValues(scp1, "id", scp1$SampleType)
data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.