create_cytoscape_file {SeqNet} | R Documentation |
Create an edge table file for Cytoscape
Description
The returned data frame can be saved as a .csv file. Then, in Cytoscape use File -> Import -> Network -> File. Select the .csv file containing the data frame generated by this function. There will be a pop-up window. The source, interaction, and target columns should automatically be identified. Click OK.
Usage
create_cytoscape_file(g)
Arguments
g |
A 'network_plot' object. See |
Value
A data frame containing an edge table that can be saved as a .csv file to be used in Cytoscape.
Examples
nw <- random_network(10)
g <- plot(nw)
nw_plot_cytoscape <- create_cytoscape_file(g)
# Save the edge table in a .csv file to be used in cytoscape.
write.table(nw_plot_cytoscape, file.path(tempdir(), "file_name.csv"),
sep = ",", row.names = FALSE, col.names = TRUE, quote = FALSE)
[Package SeqNet version 1.1.3 Index]