Description Usage Arguments Value Examples
Selects randomly interconnected genes as causal, then selects a proportion of them as causal.
1 | simulate_causal_snps(net, ngenes = 20, pcausal = 1)
|
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. |
A vector with the ids of the simulated causal SNPs.
1 2 | gi <- get_GI_network(minigwas, snpMapping = minisnpMapping, ppi = minippi)
simulate_causal_snps(gi, ngenes=2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.