createNetworkGenesTemplate: Create a network genes data frame. Optionally store it as csv...

View source: R/netwokHelpers.R

createNetworkGenesTemplateR Documentation

Create a network genes data frame. Optionally store it as csv and open it for editing To create an ingres object, a data frame with the network nodes and the corresponding gene symbols must be provided. This function simplifies the process. If the gene nodes are correct gene symbols, then modification is not needed and the returned data frame can be directly passed to the ingres constructors.

Description

Create a network genes data frame. Optionally store it as csv and open it for editing To create an ingres object, a data frame with the network nodes and the corresponding gene symbols must be provided. This function simplifies the process. If the gene nodes are correct gene symbols, then modification is not needed and the returned data frame can be directly passed to the ingres constructors.

Usage

createNetworkGenesTemplate(network, dir = getwd(), store = TRUE, modify = TRUE)

Arguments

network

A tidygraph network.

dir

The directory where the csv will be stored, if applicable.

store

If true, store the data frame as a csv

modify

If true, and store is also true, open it to be modified by the user

Value

The template data frame.

Examples

tmp = tempdir()
createNetworkGenesTemplate(network, dir = tmp)
file.remove(paste(tmp, "/networkGenes.csv")) # cleanup


ingres documentation built on Sept. 14, 2022, 9:05 a.m.