SPADE.write.graph: Writing the graph to a file in some format

Description Usage Arguments Details Value Author(s) See Also Examples

Description

General function for exporting graphs to foreign file formats, however at present only the GML format is implemented.

Usage

1
SPADE.write.graph(graph, file = "", format = c("gml"))

Arguments

graph

The graph to export

file

A connection or a string giving the file name to write the graph to.

format

Character string giving the file format.

Details

GML is general textual format for graphs.

The vertex and edge attributes are written to the file if they are numeric or strings. Currently only the graphics struct is supported, and only for vertices; graphics.x indicates an x attribute in the graphics struct.

Value

A NULL, invisibly

Author(s)

Michael Linderman

See Also

write.graph

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
	# Not run
	## Load two-parameters sample data included in package
	#data_file_path = paste(installed.packages()["spade","LibPath"],"spade","extdata","SimulatedRawData.fcs",sep=.Platform$file.sep)

	## Run basic SPADE analyses, clustering on two parameters. 
	#output_dir <- tempdir()
	#SPADE.driver(data_file_path, out_dir=output_dir, cluster_cols=c("marker1","marker2"))

	## Read and write minimum spanning tree graph 
	#mst_graph <- igraph:::read.graph(paste(output_dir,"mst.gml",sep=.Platform$file.sep),format="gml")
	#SPADE.write.graph(mst_graph, file = paste(output_dir,"new_mst.gml",sep=.Platform$file.sep), format = c("gml"))

olimora/mySPADE documentation built on May 9, 2019, 8:09 p.m.