/StringEx

Contains the StringEx extension for the VRNetzer backend

Primary LanguagePython

StringEx

This extension enables the upload and analysis of STRING networks within the VRNetzer platform. In combination with the StringApp and VRNetzerApp created for the widely used software Cytoscape, this extension allows for easy access to STRING networks on the VRNetzer platform.

Furthermore, in combination with the VRNetzerApp it allows to upload or send any network prepared in Cytoscape to the VRNetzer platform. Through the utilization of the CyREST API, a sub-set of a large-scale VRNetzer project can be send to a running Cytoscape session.

Installation

  1. Add the StringEx directory to your VRNetzer backend directory. The directory should be located at "extensions/StringEx".
  2. Before the line:
    python -m pip install -r requirements.txt
    
    add the following line to the VRNetzer backend's build and run script (Windows: buildandRUN.ps, Linux: linux_buildandrun.sh, Mac: mac_buildandrun.sh) :
    python -m pip install -r extensions/StringEx/requirements.txt
    
    If you would like to use cartoGRAPHs to create layouts also add the following line:
    python -m pip install -r extensions/StringEx/requirements_cartoGRAPHs.txt
    
    It should now look something like this:
    python -m pip install -r extensions/StringEx/requirements.txt
    python -m pip install -r extensions/StringEx/requirements_cartoGRAPHs.txt
    python -m pip install -r requirements.txt
    

Usage

Upload network from Cytoscape

  1. Export a network with the VRNetzerApp from Cytoscape. For further instructions see here.

  2. Start the VRNetzer backend using the script applicable to your operating system.

  3. Navigate in your Browser to http://127.0.0.1:5000/upload (Windows/Linux) / http://127.0.0.1:3000/upload (mac)

  4. If the StringEx is correctly installed, you should now see two new tabs. The first is the VRNetz designated uploader

     Picture that visualizes the location of the StringEx uploader tab
  5. On this tab, (a) define a project name, (b) select the VRNetz file of your exported network, and (c) select the desired layout algorithm.

  6. You can (d) also define the respective variables.

  7. You can (e) provide a name for the generated node layout.

  8. Click on the "Upload" button to upload the network to the VRNetzer platform.

  9. If the upload was successful, you'll be prompted with a success message and a link to preview the project in the designated WebGL previewer.


Map an exported network on a preprocessed PPI

Do the first three steps as mentioned above.

  1. The second tab is the STRING mapper.

    Picture that visualizes the location of the StringEx map tab.
  2. On this tab, (a) define a project name, (b) select the VRNetz file of your exported String network, and (c) select the organism from which your VRNetz originates of.

  3. Click on the "Map" button to map the network with the preprocessed PPI.

  4. If the upload was successful, you'll be prompted with a success message and a link to preview the project in the designated WebGL previewer.

Reconstruct STRING interactomes

To reconstruct the provided STRING interactomes from the source files the `construct_interactomes.py' script can be used:

Tested with Python 3.9+.

  1. Install the package e.g. in a virtual environment:
  • create a virtual environment
    python3 -m venv name_of_env
  • activate it
    source name_of_env/bin/activate
  • install requirements packages
    python3 -m pip install -r requirements.txt
  1. Run the construct interactomes script in reproduce mode:
    python3 construct_interactomes.py reproduce