hf_sim: Simulating hidden factor effects

Description Usage Arguments Value

View source: R/hiddenfactor_simulation.R

Description

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

Usage

1
2
3
hf_sim(n.genes, n.samples, hf.type = c("sparse", "normal", "uniform"),
  coeff.dist = c("normal", "uniform", "binom"), fraction.affected = 0.2,
  binom.prob = 0.4, factor.effect.size = 2)

Arguments

n.genes

Number of genes in the original phenotype matrix.

n.samples

Number of samples in the original phenotype matrix

fraction.affected

Fraction of genes affected by the hidden factor.

Value

hidden factor matrix with dimensions n.samples x n.genes


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