Skip to content
This repository has been archived by the owner on Jan 10, 2021. It is now read-only.

Commit

Permalink
Add "Exporting Networks" to wikipathways-app.Rmd
Browse files Browse the repository at this point in the history
  • Loading branch information
kozo2 committed Nov 1, 2019
1 parent 9e9c644 commit df9562f
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions wikipathways-app.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -145,3 +145,29 @@ In this time, Let’s import the pathway into Cytoscape *as Network*.
```{r}
commandsRun(paste0('wikipathways import-as-network id=', human.pluripotency.wpids[1]))
```

## Exporting Networks

Cytoscape provides a number of ways to export results and visualizations:

- As an image:

```{r}
exportImage('./wikipathways-app', 'PDF')
exportImage('./wikipathways-app', 'PNG')
exportImage('./wikipathways-app', 'JPEG')
exportImage('./wikipathways-app', 'SVG')
exportImage('./wikipathways-app', 'PS')
```

- To a public repository:

```
exportNetworkToNDEx("user", "pass", TRUE)
```

- As a Cytoscape JSON file:

```{r}
exportNetwork('./wikipathways-app', 'cyjs')
```

0 comments on commit df9562f

Please sign in to comment.