SendToCSV: SendToCSV

Description Usage Arguments Value Note Author(s) Examples

View source: R/SCRNA.R

Description

Takes in a functional Module from scPPIN, a network dataframe, gene pvalues for expression, and the cluster number, and writes two csvs that can be used by Cytoscape for visualization of the network.

Usage

1
SendToCSV(functionalModule, network, Ps, C)

Arguments

functionalModule

A object containing the solution to the cluster network computed by scPPIN

network

A dataframe containing the network and edge weights for the cluster

Ps

A dataframe containg the PValues for each genes expression

C

The cluster number

Value

Does not return any varibale, but instead creates two csv files in the current working directory

Note

called by getDataFiles

Author(s)

Matt Heffernan, University of Illinois at Chicago

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

SendToCSV(FM, network, Ps, 0)

## The function is currently defined as
function (functionalModule, network, Ps, C) 
{
    filename = paste("UterusNetwork", C, ".csv", sep = "")
    writeCSV(network, filename, row.names = FALSE)
    filename = paste("UterusTableNS", C, ".csv", sep = "")
    table2 <- as_data_frame(functionalModule, what = c("vertices"))
    writeCSV(table2, filename, row.names = FALSE)
  }

mheffe3/SCNVC documentation built on Dec. 21, 2021, 5:52 p.m.