simulate_causal_snps: Simulate causal SNPs

View source: R/simulation.R

simulate_causal_snpsR Documentation

Simulate causal SNPs

Description

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

Usage

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

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

hclimente/martini documentation built on Feb. 26, 2024, 6:23 p.m.