Helper getting variables frequencies from MiDAS object. Additionally for binary test covariate frequencies per phenotype are added. Used in scope of runMiDAS.

runMiDASGetVarsFreq(midas, experiment, test_covar)

Arguments

midas

MiDAS object.

experiment

String specifying experiment from midas.

test_covar

String giving name of test covariate.

Value

Data frame with variable number of columns. First column,

"term" holds experiment's variables, further columns hold number of variable occurrence and their frequencies.