Permute sample labels to generate permuted logFCs

.generate_permutedFC(logCPM, numOfTreat, NB, weight)

Arguments

logCPM

Matrix of normaslised logCPM where rows are genes and columns are samples. Row names need to be gene entrez IDs.

numOfTreat

Number of treatments (including control)

NB

Number of permutations

weight

A vector of gene-wise weights derived from function weight_ss_fc

Value

A list