simulate_causal_snps: Simulate causal SNPs

Description Usage Arguments Value Examples

View source: R/simulation.R

Description

Selects randomly interconnected genes as causal, then selects a proportion of them as causal.

Usage

1
simulate_causal_snps(net, ngenes = 20, pcausal = 1)

Arguments

net

An igraph gene-interaction (GI) network that connects the SNPs.

ngenes

Number of causal genes.

pcausal

Number between 0 and 1, proportion of the SNPs in causal genes that are causal themselves.

Value

A vector with the ids of the simulated causal SNPs.

Examples

1
2
gi <- get_GI_network(minigwas, snpMapping = minisnpMapping, ppi = minippi)
simulate_causal_snps(gi, ngenes=2)

martini documentation built on Nov. 8, 2020, 5:39 p.m.