Skip to contents

Generate beta matrix giving genetic effect per SNP on taxa abundances.

Usage

compute_beta_matrix_cluster(
  n_b,
  n_g,
  n_clust,
  n_qtl_o,
  n_otus,
  effect_size = 1,
  correlation = 1,
  beta_info = NULL
)

Arguments

correlation

Correlation between taxa within the same cluster, value between 0 and 1, DEFAULT = 0.5

Value

A matrix of taxa (in rows) across SNPs (in columns) giving the multiplicative effetc of genotype on taxa abundances.