samplesMeasuredMissing: Create tibble containing number of measured/missing features...

View source: R/tab_measuredvalues_missingvalues.R

samplesMeasuredMissingR Documentation

Create tibble containing number of measured/missing features of samples

Description

samplesMeasuredMissing returns a tbl with the number of measured/missing features of samples. The function will take as input a SummarizedExperiment object and will access its assay() slot

Usage

samplesMeasuredMissing(se)

Arguments

se

SummarizedExperiment object

Value

tbl with number of measured/missing features per sample

Examples

## create se
a <- matrix(seq_len(100), nrow = 10, ncol = 10, 
            dimnames = list(seq_len(10), paste("sample", seq_len(10))))
a[c(1, 5, 8), seq_len(5)] <- NA
set.seed(1)
a <- a + rnorm(100)
sample <- data.frame(name = colnames(a), type = c(rep("1", 5), rep("2", 5)))
featData <- data.frame(spectra = rownames(a))
se <- SummarizedExperiment::SummarizedExperiment(assay = a, 
    rowData = featData, colData = sample)

## create the data.frame with information on number of measured/missing
## values
samplesMeasuredMissing(se)


tnaake/MatrixQCvis documentation built on Nov. 4, 2024, 7:42 a.m.