Filters an FBM based on row-level mean and variance thresholds, returning a new FBM with only the selected rows.
filterFBM(
fbm,
rowStats,
keep_samples_idx = NULL,
mean_cutoff = NULL,
var_cutoff = NULL,
backingfile = "filtered_fbm"
)A bigstatsr::FBM object.
A list with numeric vectors row_means and row_variances.
Optional integer vector of column indices to retain.
Default is filtered_fbm.
Optional minimum mean threshold; rows with means below this are removed.
Optional minimum variance threshold; rows with variances below this are removed.
A character string specifying the filename (without extension) for the new FBM.
A list with:
A new FBM object containing only filtered rows.
Indices of rows retained in the filtering step.
This function creates a new FBM and copies over only the rows that pass the filtering criteria. The original FBM is unchanged.