add.to.graphs: —————— Augment grahs

Description Usage Arguments Value Author(s)

View source: R/add.to.graphs.R

Description

Add TF to CpG edges and trans gene to SNP edges to graphs. This function assumes that you have an object tfbs.ann in the environment. It is not passed as argument (bad style) becuase it is too big (passing by value).

Usage

1
add.to.graphs(graphs, sentinel, trans.genes, trans.cpgs, tfbs.ann)

Arguments

graphs

list of graph objects to add nodes and edges to

sentinel

character id of the sentinel SNP

trans.genes

character vector of genes in the trans locus

trans.cpgs

character vector of CpGs with trans meQTLs

tfbs.ann

logical indicator matrix with CpGs in the rows and transcription factors as columns

Value

list of graph objects with the nodes and edges added

Author(s)

Matthias Heinig <matthias.heinig@helmholtz-muenchen.de>

—————————————————————————–


matthiasheinig/QTLnetwork documentation built on June 29, 2021, 10:11 p.m.