Skip to contents

Updates 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.

Usage

update_mash_model_cov(mash_model, all_samples, samples)

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.

Value

The updated mash model with resized covariance matrices and pruned mixture weights.