Performed on a set of non-negative numbers and labels of size N. There must be two specific labels. Label 1 must be 1 and label 2 must be 2. There can also be any other labels that will be ignored.
Permutation T value
Find the number and sum of each group.
Na: number of values in group 1
Nb: number of values in group 2
Sa:
Sb:
SSa:
SSb:
Compute the sample mean of each group.
Ma:
Mb:
Compute the variance for each group.
Estimate the variance
varA:
varB:
Var:
Estimate the standard deviation (stDev):
t:
Permutation T probability
Calculate raw P value based on original grouping of each gene. =
Randomly regrouping each gene. The size in each group stays the same as the original, each sample can only appare once in each group, number of regrouping depends on user.
For each regrouped gene, recalculate P value. =
Count if less than or equals to . count = number of <=
Calculate permutation P value. PP-value =
Rank PP-value by ascending order, calculate False Discovery Rate P value. FDR P-value = *PP-value if P-value >=1, then set P-value = 1