Sign inSign up

flockowak/cytoscape

By flockowak

Updated over 8 years ago

Cytoscape and RStudio with CyREST/r2cytoscape connection

Image
4

556

flockowak/cytoscape repository overview

What's in this image?

Version 3.6.1 (latest)


Version 3.6.0

Exposed Ports

  • 8787 used by RStudio
  • 1234 used by CyREST (Swagger API)

Usage

Run container

docker run -dit \
	-p 8787:8787 \
	-p 1234:1234 \
	-v /tmp/.X11-unix:/tmp/.X11-unix \
    -e DISPLAY=$DISPLAY \
	--name=cytoscape-rstudio \
	flockowak/cytoscape

By default the username/password is rstudio:rstudio. To use a custom password by specifying the PASSWORD environmental variable

docker run -dit \
	-p 8787:8787 \
	-p 1234:1234 \
	-v /tmp/.X11-unix:/tmp/.X11-unix \
    -e DISPLAY=$DISPLAY \
    -e PASSWORD=yourpasswordhere \
	--name=cytoscape-rstudio \
	flockowak/cytoscape

For more options see the documentation on the rocker/rstudio docker hub page.

Note:

You have to authorize your user to access the X Server from another host using xhost:

xhost +si:localuser:$USER

or

xhost +local

Start RStudio

Open http://localhost:8787 in you browser

Run Cytoscape

docker exec -u rstudio cytoscape-rstudio cytoscape

Test installation

Version 3.6.1

  1. Start Cytoscape
  2. Start RStudio
  3. Run the provided script (or just parts): "Cytoscape-and-NDEx.Rmd" ...This will do the following: ...* Install the required libraries RCy3 and ndexr ...* Download some networks from NDEx ...* Import a network from NDEx in Cytoscape ...* Send a network from RStudio to Cytoscape

For more examples, explore the RCy3 documentation

?RCy3

or have a look at Cytoscape-Tutorials or Cytoscape Advanced Topic: Automation


Version 3.6.0

To check, if all required libraries are installed, you can run the check-library-installation.R script in RStudio:

source('/home/rstudio/check-library-installation.R')

With Cytoscape running, you can test the connection between RStudio and Cytoscape running the check-cytoscape-connection.R script:

source('~/check-cytoscape-connection.R')

See also:

Tag summary

Content type

Image

Digest

Size

794.2 MB

Last updated

over 8 years ago

docker pull flockowak/cytoscape