Phenotypes-class: Phenotypes class.

Description Usage Arguments Details Methods (by generic) Slots Examples

Description

Details about Phenotypes class.

Usage

1
2
3
4
5
## S4 method for signature 'Phenotypes'
show(object)

## S4 method for signature 'Phenotypes'
simulate(object, seed = NULL)

Arguments

object

Phenotypes-class object

seed

an integer for set.seed

Details

Class holding information about the samples

Methods (by generic)

Slots

n

number of samples

proportionOutlying

proportion of outlying or erroneusly assigned samples. It is not uncommong that in large-scale experiments up to ~5% samples appear as outliers.

originalPhenotypes

character vector with original or intended phenotype (group) assignment

simulatedPhenotypes

character vector with phenotype assigments after pretending that some of the samples are actually outliers

sampleNames

character vector with sample names

meanFoldChange

numeric value controlling the applitude of average fold of change between the conditions. Used as sdlog in rlnorm function.

pipettingAccuracy

a parameter for generating sample systematic biases

sampleBiases

normalization scaling factors

simulated

logical indicated if the object has been simulated

Examples

1
2
3
4
5
6
7
8
# 10 samples (5 controls + 5 cases)
# Note, the number of outlying samples is somewhat extreme - 50%.
# This is for demonstration purpose only.
ph <- Phenotypes(original=c('Ctrl', 'Ctrl', 'Ctrl', 'Ctrl', 'Ctrl',
                            'Case', 'Case', 'Case', 'Case', 'Case'),
                 proportionOutlying=0.5)
ph <- simulate(ph, seed=123)
show(ph)

vladpetyuk/simMSnSet documentation built on May 3, 2019, 6:16 p.m.