subset_Primo_obj: Subset a Primo object.

Description Usage Arguments Value

View source: R/processing.R

Description

Subset results from Primo output based on a vector of indices.

Usage

1
subset_Primo_obj(Primo_obj, idx)

Arguments

Primo_obj

list of results returned by Primo (from the function Primo_tstat, Primo_pval, Primo_modT or Primo_chiMix).

idx

integer vector of the indices to subset Primo results.

Value

A list of Primo results with the following elements:

post_prob matrix of posterior probabilities (each column corresponds to an association pattern).
pis vector of estimated proportion of SNPs belonging to each association pattern.
D_mat matrix of densities under each association pattern.
Gamma correlation matrix.

kjgleason/primo documentation built on Sept. 7, 2021, 5:21 p.m.