Sign inSign up

thegoldenphoenix/spider

By thegoldenphoenix

•Updated over 2 years ago

System for Protein, Interactions, Drugs and Exploratory Research

0

2

thegoldenphoenix/spider repository overview

⁠SPIDER

SPIDER consists of three different images:

⁠Installation

⁠Docker
  1. Install Docker Desktop⁠
  2. Optional: Restart your pc after the installation
  3. Create a docker-compose.yml with this content
services:
  fastapi:
    build:
      context: ./backend
    ports:
      - "8000:8000"
    depends_on:
      - neo4j
    environment:
      - NEO4J_URI=bolt://neo4j:7687
      - NEO4J_USER=neo4j
      - NEO4J_PASSWORD=workwork

  react-nginx-app:
    stdin_open: true
    build:
      context: ./frontend
      dockerfile: Dockerfile
    expose:
      - 3000
    ports:
      - 3000:80
    environment:
        - CHOKIDAR_USEPOLLING=true

  neo4j:
    image: neo4j:5.12.0-community
    ports:
      - "7474:7474"
      - "7687:7687"
    environment:
      - NEO4J_ACCEPT_LICENSE_AGREEMENT=yes
      - NEO4J_AUTH=neo4j/workwork
    volumes:
      - ./db/data:/data
      - ./db/conf:/conf
      - ./db/logs:/logs
      - ./db/plugins:/plugins
  1. Open the terminal in the folder where you placed the docker-compose.yml and run the following command:
docker-compose up

(Optional: First run docker-compose pull) This process can take some time (approximately 40 minutes). 5. Call http://localhost:7474/browser/⁠ and execute the following Neo4j cipher (user: neo4j, password: workwork).

CREATE INDEX IF NOT EXISTS FOR (d:Drug) ON (d.name);
CREATE INDEX IF NOT EXISTS FOR (p:Protein) ON (p.name);
CREATE INDEX IF NOT EXISTS FOR (c:Cell_Line) ON (c.name);
CREATE INDEX IF NOT EXISTS FOR (d:Drug) ON (d.uid);
CREATE INDEX IF NOT EXISTS FOR (p:Protein) ON (p.uid);
CREATE INDEX IF NOT EXISTS FOR (c:Cell_Line) ON (c.uid);
CREATE INDEX IF NOT EXISTS FOR (d:Drug) ON (d.drug_id);
CREATE INDEX IF NOT EXISTS FOR (d:Drug) ON (d.CHEMBL);
CREATE INDEX IF NOT EXISTS FOR (c:Cell_Line) ON (c.COSMIC_ID);
CREATE INDEX IF NOT EXISTS FOR (p:Protein) ON (p.swiss);
CALL gds.graph.project("graph", "Protein", {PPI: {orientation: "UNDIRECTED"}});
  1. The website should be running on http://localhost:3000/⁠

Tag Summary

No tags have been pushed to this repository yet.