https://github.com/menchelab/stringex
Contains the StringEx extension for the VRNetzer backend
https://github.com/menchelab/stringex
Last synced: about 1 year ago
JSON representation
Contains the StringEx extension for the VRNetzer backend
- Host: GitHub
- URL: https://github.com/menchelab/stringex
- Owner: menchelab
- Created: 2022-11-15T00:19:56.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-03T15:34:21.000Z (almost 3 years ago)
- Last Synced: 2025-02-05T20:02:00.746Z (over 1 year ago)
- Language: Python
- Size: 196 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# StringEx
This extension enables the upload and analysis of STRING networks within the VRNetzer platform. In combination with the [StringApp](https://apps.cytoscape.org/apps/stringapp) and [VRNetzerApp](https://github.com/menchelab/STRING-VRNetzer/blob/main/VRNetzerApp/target/VRNetzerApp-1.0.0.jar) created for the widely used software [Cytoscape](https://cytoscape.org/), this extension allows for easy access to STRING networks on the VRNetzer platform.
Furthermore, in combination with the [VRNetzerApp](https://github.com/menchelab/STRING-VRNetzer/blob/main/cytoscapeApp/VRNetzerApp/target/VRNetzerApp-1.0.0.jar) it allows to upload or send any network prepared in Cytoscape to the VRNetzer platform. Through the utilization of the [CyREST](https://apps.cytoscape.org/apps/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](https://github.com/menchelab/STRING-VRNetzer).
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

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](#upload-string-network).
4. The second tab is the STRING mapper.

5. 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.
6. Click on the "Map" button to map the network with the preprocessed PPI.
7. 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`
2. Run the construct interactomes script in reproduce mode:
`python3 construct_interactomes.py reproduce`