imputation_info: Checking overimputation in proteomics datasets

imputation_infoR Documentation

Checking overimputation in proteomics datasets

Description

Checking overimputation in proteomics datasets

Usage

imputation_info(x, set.c)

## S4 method for signature 'SummarizedExperiment'
imputation_info(x, set.c)

## S4 method for signature 'ExpressionSet'
imputation_info(x, set.c)

Arguments

x

An S4 object of class SummarizedExperiment or ExpressionSet

set.c

Character: name of the data set

Value

integer matrix indicating the imputed values in the intensity matrix

Examples

set.c <- "proteomics_plasma"

# SummarizedExperiment

proteo.mae <- phenomis::reading(ProMetIS::post_processed_dir.c(),
                                subsets.vc = set.c)
proteo.se <- proteo.mae[[set.c]]
imputed.mi <- ProMetIS:::imputation_info(proteo.se, set.c = set.c)
# computing the number of imputed values per feature and per genotype
genotype.fc <- factor(substr(colnames(imputed.mi), 1, 1), levels = c("L", "X", "W"))
geno_impute.mn <- t(apply(imputed.mi, 1, function(feat.vn) tapply(feat.vn, genotype.fc, sum)))
colnames(geno_impute.mn) <- c("LAT", "MX2", "WT")
colSums(geno_impute.mn)
geno_impute.df <- tidyr::gather(as.data.frame(geno_impute.mn), genotype, imputation, LAT:WT, factor_key = TRUE)
ggplot2::ggplot(geno_impute.df, ggplot2::aes(x = imputation, colour = genotype)) + ggplot2::geom_density()

# ExpressionSet

proteo.mset <- phenomis::reading(ProMetIS::post_processed_dir.c(),
                                 subsets.vc = set.c,
                                 output.c = "set")
proteo.eset <- proteo.mset[[set.c]]
imputed.mi <- ProMetIS:::imputation_info(proteo.eset, set.c = set.c)

IFB-ElixirFr/ProMetIS documentation built on May 21, 2024, 8:02 p.m.