Generate permutation matrix from ReadCountSet objects or from label vectors.
Usage
genpermuteMat(obj, times = 1000, seed = NULL)
Arguments
obj
a ReadCountSet object or a label vector. This function needs the original sample label information to generate permutation matrix.
times
an integer indication the times of permutation.
seed
an integer or NULL, to produce the random seed (an integer vector) for generating random permutation matrix: the same seed generates the same permutation matrix, which is introduced for reproducibility.
Value
A sample label shuffled matrix, rows corresponding to samples and columns for each permutation.