Skip to contents

This function returns a matrix in dimensions samples, where samples are the columns of the NetProphetDataSet, x predictors, where predictors are a subset of the regulators. Any regulators which do not regulate a gene according to the regulation matrix are filtered out

Usage

regPredictors(x, ...)

# S4 method for NetProphetDataSet
regPredictors(x, gene, transpose = TRUE)

Arguments

x

a NetProphetDataSet object

gene

a gene which is in the rownames(x) and possibly in the colnames(regMatrix(x))

transpose

logical, default TRUE to return a sample x predictor matrix. NOTE that this is of particular interest when calling C++ (and maybe C?) functions as they store matricies differently than R and Fortran (row vs column wise). Best to check on these details if you think it might matter.