scImpute: Site- and condition-specific (sc) impute

Description Usage Arguments Value Examples

View source: R/Impute.R

Description

Impute the missing values for a phosphosite across replicates within a single condition (or treatment) if there are n or more quantified values of that phosphosite in that condition.

Usage

1
scImpute(mat, percent, grps)

Arguments

mat

a matrix with rows correspond to phosphosites and columns correspond to replicates within a condition.

percent

a percent from 0 to 1, specifying the percentage of quantified values in any treatment group.

grps

a string specifying the grouping (replciates).

Value

An imputed matrix

Examples

1
2
3
4
5
6
7
8
9
data('phospho.cells.Ins.sample')
grps = gsub('_[0-9]{1}', '', colnames(phospho.cells.Ins))
phospho.cells.Ins.filtered <- selectGrps(phospho.cells.Ins, grps, 0.5, n=1)

set.seed(123)
phospho.cells.Ins.impute <-
    scImpute(phospho.cells.Ins.filtered,
    0.5,
    grps)[,colnames(phospho.cells.Ins.filtered)]

PhosR documentation built on Nov. 8, 2020, 6:54 p.m.