Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

generate.RollUpMap

Generates peptide to protein map.


Description

Generates peptide to protein map. For a given peptide expression matrix with nPep peptides, this functions creates a random map to be used for the aggregation of the peptides into nProt proteins.

Usage

generate.RollUpMap(nProt, pep.Expr.Data)

Arguments

nProt

Number of proteins

pep.Expr.Data

Peptide expression data matrix

Value

A vector of the length nPep containing integer random samples in the range [1, nProt]

Author(s)

Cosmin Lazar

See Also

Examples

exprsDataObj = generate.ExpressionData(nSamples1 = 6, nSamples2 = 6,
                          meanSamples = 0, sdSamples = 0.2,
                          nFeatures = 1000, nFeaturesUp = 50, nFeaturesDown = 50,
                          meanDynRange = 20, sdDynRange = 1,
                          meanDiffAbund = 1, sdDiffAbund = 0.2)
exprsData = exprsDataObj[[1]]
rollUpMap = generate.RollUpMap(round(dim(exprsData)[1]/2),exprsData)

## The function is currently defined as
function (nProt, pep.Expr.Data) 
{
    n = dim(pep.Expr.Data)[1]
    temp = 1:nProt
    pep.prot.Map = rep(0, n)
    pep.prot.Map[sample(temp)] = sample(temp)
    pep.prot.Map[which(pep.prot.Map == 0)] = sample.int(nProt, 
        size = (n - nProt), replace = T)
    return(pep.prot.Map)
  }

imputeLCMD

A collection of methods for left-censored missing data imputation

v2.0
GPL (>= 2)
Authors
Cosmin Lazar
Initial release
2015-01-18

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.