eqtl_simulator_h5: Simulating eQTL phenotypes.

Description Usage Arguments Value

View source: R/eqtl_simulator_h5.R

Description

Generates a phenotype matrix based on a given input genotype matrix.

Usage

1
2
3
4
5
eqtl_simulator_h5(input.geno = NULL, n.pheno, n.eqtl, simulation.id,
  output.path = NULL, coeff.mean = 2.5, n.sim = 5,
  cis.trans.ratio = 0.7, trans.impact = 0.1, trans.nerf = 0.7,
  hidden.factor = TRUE, factors = NULL, factor.coeff = NULL,
  hf.frac = 0.2, effect.size = 2, factor.type = NULL)

Arguments

n.pheno

Number of phenotypes to simulate

n.eqtl

Number of eQTL pairs

cis.trans.ratio

Ratio between cis and trans hits

trans.impact

Maximum percentage of total genes a trans hit can influence.

trans.nerf

Ratio of trans effect size compared to cis-hits. Accounts for the observation that trans hits usually have smaller effect sizes.

genotypes

A genotype matrix with dimensions N x g.

coeff.sample

A vector from which the effect sizes (coefficiens) are going to be sampled from.

Value

Phenotype matrix with dimensions N x n.pheno


jinhyunju/eQTLtools documentation built on May 19, 2019, 10:35 a.m.