Produces a random permutation score matrix given a vector of sample-specific scores representing a phenotypic readout of interest such as protein expression, pathway activity, etc.
generate_permutations(input_score, n_perm)
a vector of continuous scores of a molecular phenotype of
interest such as protein expression, pathway activity, etc.
NOTE: The input_score
object must have names or labels to track
samples by.
a number of permutations to generate. This determines the number of rows in the permutation matrix.
a matrix of values where each row contains scores of a single
permuted input_score
.