Splits sample in train and test set
split_sample(
z,
stratification,
is_regulator,
split_indices,
split1_proportion,
total_proportion,
center
)
a list containing
first data split, TF-part
second data split, TF-part
first data split, non-TF part
second data split, non-TF part
either verbatim the vector given as input or a vector encoding the splits as NA = not included, 1 = split 1 or 2 = split 2. Allows reproducibility of data splits.
matrix of single cell data with rows as genes and columns as cells.
a vector by which the sampling will be stratified
of length ncol(z)
an indicator vector, telling which rows in z
are
candidate regulators
a vector of given split indices. can be NULL
proportion to include in first data split
proportion of data to include overall in splitting
TRUE if data should be row-centered. Set to FALSE otherwise.