Filters an FBM based on row-level mean and variance thresholds, returning a new FBM with only the selected rows.
Usage
filterFBM(
fbm,
rowStats,
keep_samples_idx = NULL,
mean_cutoff = NULL,
var_cutoff = NULL,
backingfile = "filtered_fbm"
)Arguments
- fbm
A
bigstatsr::FBMobject.- rowStats
A list with numeric vectors
row_meansandrow_variances.- keep_samples_idx
Optional integer vector of column indices to retain. Default is
filtered_fbm.- mean_cutoff
Optional minimum mean threshold; rows with means below this are removed.
- var_cutoff
Optional minimum variance threshold; rows with variances below this are removed.
- backingfile
A character string specifying the filename (without extension) for the new FBM.
Value
A list with:
- fbm_filtered
A new FBM object containing only filtered rows.
- kept_rows
Indices of rows retained in the filtering step.
