Return a control signature for the signature or <Group> provided. Control signatures are generated by binning the average row values (average gene expression values) and sampling from the resulting bins such that every value in the original signature has <n> bin-matched values in the resulting output.
binmatch(
Group,
mat = NULL,
x = NULL,
bins = NULL,
nbin = 30,
n = 100,
replace = FALSE,
...
)
a character vector.
a matrix.
a named numeric vector to generate bins from. If NULL, x will be computed from mat. Default: NULL
a named character vector with as names the rownames and as values the ID of each bin. Default: NULL
numeric value. How many bins should be created? Default: 30
numeric value for the number of control values to return per value in Group. Default: 100
boolean value. Allow bin sampling to be done with replacement. Default: F
a character vector of length n * length(Group), containing the binmatched values for the values (gene names) in Group.