wilcoxDEG: Multiple Wilcoxons tests for each row of a dataframe

Description Usage Arguments Value Examples

View source: R/DEG.R

Description

Testing, for one row at the time, if the first series of values are different, greater or less than the values of the second condition.

Usage

1
wilcoxDEG(data, n1, n2)

Arguments

data

dataframe of gene expression levels: Gene names in rows, samples in columns.

n1

Number of samples for the first experimental condition

n2

Number of samples for the second experimental condition

Value

Dataframe with three columns, each corresponding to a hypothesis : weak hypothesis, and two for the strong hypothesis "alternative = "less" ", and "greater" For the second condition has values that are less or greater than values of the first one.

Examples

1
2
3
4
5
6
7
8
9
# Import the dataset
Data = matrix(runif(5000, 10, 100), ncol=20)
group = paste0(rep(c("control", "case"), each = 10),rep(c(1:10),each = 1))
genes <- paste0(rep(LETTERS[1:25], each=10), rep(c(1:10),each = 1))
colnames(Data) = group
row.names(Data) = genes 

# Compute Pvalues
res.DEG = wilcoxDEG(Data,10,10)

jtcasemajor/CPRD documentation built on Dec. 21, 2021, 3:22 a.m.