simulate_causal_snps | R Documentation |
Selects randomly interconnected genes as causal, then selects a proportion of them as causal.
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.
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.