simulate_causal_snps {martini} | R 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)

[Package martini version 1.0.0 Index]