feature_selection_one {SUMO} | R Documentation |
Dividing features to create vectors with signal in the first omic
feature_selection_one(n_features_one, num.factor, no_factor)
n_features_one |
number of features of first omic |
num.factor |
type of factors - single or multiple |
no_factor |
number of factors |
A list of numeric vectors.
The first vector contains a consecutive subset of the first num_elements
from the original vector.
The subsequent vectors are sub-vectors derived from remaining segments, each containing 40% of the elements from the corresponding segment.
If num.factor == 'multiple'
, the segments are divided based on no_factor
, and the function ensures the segments meet the size constraints.
The function recursively retries segmentation if any segment size is smaller than the minimum constraint of 10 elements.
The function returns an error if the input parameters or constraints are invalid (e.g., num.factor
is not "multiple" or no_factor
is missing).