createIntervals: Create interval widths for volcano plots

Description Usage Arguments

Description

Create confidence intervals for fold changes and prediction intervals for p-values for use in volcano plots. Additionally creates effect sizes.

Usage

1
2
3
4
createIntervals(data, groupIndices = NULL, proteinNames = NULL,
  testName = c("limma", "t-test"), fcWidth = 0.95, pWidth = 0.5,
  fcR = 999, pR = 999, pType = c("bootstrap", "parametric"),
  seed = NULL)

Arguments

data

data.frame, table.table, matrix with samples in columns and proteins in rows.

groupIndices

A vector/factor containing indices for the groups. Can handle only two groups, and has to be the sample length as the number of columns in data

proteinNames

Optional character vector containing the names of the proteins. Has to have the same length as the number of rows in data.

testName

String containing the name of the test to perform (extract p-values from). Can be either limma or t-test. (Default = limma)

fcWidth

Width of the confidence interval of the fold change. Has to be between 0.01 and 0.99. (Default = 0.95)

pWidth

Width of the prediction interval of the p-value, assuming identical new experiment. Has to be between 0.01 and 0.99. (Default = 0.5)

fcR

Number of bootstrap replicates to generate for the confidence interval of the fold change. (Default = 999)

pR

Number of bootstrap replicates to generate for the prediction interval of the p-values. Ignored if pType is "parametric". (Default = 999)

pType

Type of prediction interval to make for the p-values. Can be either bootstrap, or parametric.

seed

Numeric value for the seed to be set at the very start.


bramburger/colvano documentation built on Nov. 4, 2019, 8:12 a.m.