This function creates a permuted read counts matrix based
on the contrast argument (to define new virtual
contrasts of the same number) and on the
sample.list to derive the number of samples for
each virtual condition.It is a helper for the
meta.perm function.
the list containing condition names
and the samples under each condition.
contrast
the contrasts vector. See the main
metaseqr help page.
repl
the same as the replace argument in
sample function.
Value
A list with three members: the matrix of permuted per
sample read counts, the virtual sample list and the
virtual contrast to be used with the stat.*
functions.