inst/doc/scones_usage.R

## ----load martini-------------------------------------------------------------
library(martini)

## ----print fam----------------------------------------------------------------
head(minigwas$fam)

## ----print map----------------------------------------------------------------
head(minigwas$map)

## ----print genotypes----------------------------------------------------------
minigwas$genotypes

## ----create GS network--------------------------------------------------------
gs <- get_GS_network(minigwas)
par(mar=c(0,0,0,0)+.1)
plot(gs)

## ----create GM network--------------------------------------------------------
gm <- get_GM_network(minigwas, snpMapping = minisnpMapping)
par(mar=c(0,0,0,0)+.1)
plot(gm)

## ----create GI network--------------------------------------------------------
gi <- get_GI_network(minigwas, snpMapping = minisnpMapping, ppi = minippi)
par(mar=c(0,0,0,0)+.1)
plot(gi)

## ----find cones gridsearch----------------------------------------------------
cones <- search_cones(minigwas, gi)

## -----------------------------------------------------------------------------
head(cones)

Try the martini package in your browser

Any scripts or data that you put into this service are public.

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