score_delta: Measure p of delta

Description Usage Arguments Value

Description

Assigns a probability of an observed difference between conditions as function of the differences observed between the controls.

Usage

1
score_delta(df, probe, ctrl, delta, minTpm = 0, minSamples = 10)

Arguments

df

data.frame containing the differences.

probe

Unquoted name of the biomarker column (e.g. transcript).

ctrl

Unquoted name of the expression in the control condition column (e.g. tpmCtrl).

delta

Unquoted name of the actual difference between conditions column (e.g. dPSI).

minTpm

Minimum TPM to consider a transcript/gene expressed.

minSamples

Minimum number of samples to consider the differences informative. If the number of samples with a valid value (i.e. >= minTpm) is < minSamples, NAs will be returned.

Value

A copy of df with an extra column p indicating the probability of the difference.


hclimente/scudo documentation built on May 25, 2019, 5:26 p.m.