splatPopeQTLEffects: Assign eGenes-eSNPs pairs and effect sizes.

View source: R/splatPop-simulate.R

splatPopeQTLEffectsR Documentation

Assign eGenes-eSNPs pairs and effect sizes.

Description

Randomly pairs N genes (eGene) a SNP (eSNP) within the window size (eqtl.dist) and assigns each pair an effect size sampled from a gamma distribution parameterized using the effect sizes from a real eQTL study.

Usage

splatPopeQTLEffects(params, key, vcf)

Arguments

params

SplatPopParams object containing parameters for population scale simulations. See SplatPopParams for details.

key

Partial splatPop key data.frame.

vcf

VariantAnnotation object containing genotypes of samples.

Value

The key updated with assigned eQTL effects.


Oshlack/splatter documentation built on April 27, 2024, 8:20 p.m.