Sign inSign up

xabush/moses_snet_service

By xabush

•Updated over 7 years ago

This image is used to run the moses snet service

Image
0

1.1K

xabush/moses_snet_service repository overview

singnetlogo

CircleCI Coverage Status BCH compliance

The MOSES⁠ service for SingularityNET

The purpose of this service is to use MOSES⁠ for Supervised classification of SNP or Gene Expression data.

⁠Running the Service
  1. Clone the project:

    $ git clone --recursive https://github.com/Habush/mozi_snet_service.git

  2. Go to the project folder and start docker containers to run the gRPC server and its dependencies (redis, mongo, etc)

    2a. Define the APP_PORT, SERVICE_ADDR variables. Change <PORT_NUM> to the port number you would like to run the react app and <ADDR> to the address of the host that you are going to run the app. If you are running this locally, set SERVICE_ADDR to localhost

     $ export APP_PORT=<PORT_NUM>
     $ export SERVICE_ADDR=<ADDR>
    

    2b. Start the docker containers:

     $ docker-compose up
    
  3. Install the python dependencies for running the service client on your local system. Run:

    $ pip install grpcio grpcio-tools pyyaml

  4. Generate the gRPC code from the protobufs. Run the following:

    $ ./build.sh

    Note: Make sure you have set execute permission for build.sh. If not, just run chmod +x build.sh

  5. On a new terminal, while still in the project directory, call the service client. Replace with a .yaml file containing the moses and cross-validation with the path to file you want to run analysis on

    $ python -m service.moses_service_client <options-file> <dataset-file>

    This will output a link where you can poll the status and download the result files once the analysis is finished.

    NOTE: You can find a sample options.yaml file in the tests/data directory of the project

Tag summary

Content type

Image

Digest

Size

958.9 MB

Last updated

over 7 years ago

docker pull xabush/moses_snet_service