| samples_memi {MatrixQCvis} | R Documentation |
'samples_memi' 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
samples_memi(se)
se |
'SummarizedExperiment' object |
'tbl' with number of measured/missing features per sample
## create se
a <- matrix(1:100, nrow = 10, ncol = 10,
dimnames = list(1:10, paste("sample", 1:10)))
a[c(1, 5, 8), 1: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
samples_memi(se)