normP: Normalize likelihoods and return probabilities

Description Usage Arguments Value Examples

Description

Normalize likelihoods and return probabilities

Usage

1
normP(pVector, minPP = 0)

Arguments

pVector

A numeric vector of pre-normalization likelihoods

minPP

A float. Genes with a posterior probability < minPP are lumped as "Other". Optional

Value

A sorted, numeric vector of normalized probabilities

Examples

1
2
normP(c(5, 1, 1, 1, 1, 1, 0.1))
normP(c(5, 1, 1, 1, 1, 1, 0.1), minPP=0.1)

awuster/geneAttribution documentation built on May 11, 2019, 4:11 p.m.