Subset a fitted mash model to a subset of conditions
Source:R/mash_wrapper.R
update_mash_model_cov.RdUpdates the prior covariance matrices (Ulist) and mixture weights
(pi) in a fitted mashr model to match a reduced set of
conditions. Handles condition-specific, identity, and data-driven
covariance components.
Arguments
- mash_model
A fitted mash model object (from
mashr::mash).- all_samples
Character vector of all original condition names.
- samples
Character vector of the conditions to retain.