Skip to content
This repository was archived by the owner on Nov 5, 2019. It is now read-only.
/ TOXsIgN Public archive

The TOXicogenomic sIgNature (TOXsIgN) repository provides a flexible and open design that facilitates online submission by the toxicology community, storage and retrieval of toxicogenomic signatures, defined as the description of (transcript-/epigen-)omics effects on individuals or their descendants, after exposure to single or combined environm…

License

Notifications You must be signed in to change notification settings

BioMAs/TOXsIgN

Repository files navigation

TOXsIgN

Stable v1.0.30 Release v1.0.32 Python v>=2.7.12 node v>=0.4.0 MyGet License: GPL-3

Status

In development

Installation

Download the code, then

python setup.py develop

Configuration

Copy development.ini.template to development.ini then fill app:main section parameters

admin contains the list of site administrators (emails, comma separated)

Run

Development

pserve development.ini

Production

pserve production.ini

Create a user

It is possible to create a user via command line to avoid email validation

python create_user.py --config development.ini --email test@test1 --pwd test

Docker

Start mongodb, then the toxsign container. In development.ini, set mongodb hostname to corresponding mongo container name (here toxsign-mongo)

docker run --name toxsign-mongo -d mongo
docker run --name toxsign-elasticsearch -d elasticsearch
docker run --name toxsign-web --link toxsign-elasticsearch:toxsign-elasticsearch  --link toxsign-mongo:toxsign-mongo -v path_to/development.ini:/opt/toxsign/development.ini -p 6543:6543 osallou/toxisgn:dev

For data persistency, you should mount a volume to :

/opt/toxsign/var/upload ( -v path_to_storage:/opt/toxsign/var/upload )

To create a user:

docker exec toxsign-web python create_user.py --config development.ini --email test@test --pwd test

Manual:

docker run --link toxsign-mongo:mongo -v path_to/development.ini:/opt/toxsign/development.inii -it -p 6543:6543 --entrypoint /bin/bash osallou/toxisgn:dev
#>pserve development.ini

Commands

##Database gestion

To reset database :

mongo chemsign2 --eval "db.signature.drop()"

To reset ElasticSearch indexes:

curl -XDELETE localhost:9200/toxsign

##Upload website Docker run :

docker -H 127.0.0.1:2375 run -d -p 6543:6543 -v /home/genouest/bioinfo/irset/toxsign:/opt/toxsign  --link toxsign-elasticsearch:toxsign-elasticsearch --link toxsign-mongo:toxsign-mongo --name toxsign-webapp toxsign-web gunicorn  -p toxsign.pid --log-config=/opt/toxsign/production.ini --paste /opt/toxsign/production.ini

Execute commands in container:

docker -H 127.0.0.1:2375 exec -it 6ac4fbd53605 /bin/bash

##Local access

192.168.1.218

Prepare Ontologies

Use .obo files and run :

wish8.6 convert_OBO.tcl fileIN FileOut

Special process for ChEBI (download chebi_core.obo): next run

python formatChebi.py

For other files :

python prepOnto.py

About

The TOXicogenomic sIgNature (TOXsIgN) repository provides a flexible and open design that facilitates online submission by the toxicology community, storage and retrieval of toxicogenomic signatures, defined as the description of (transcript-/epigen-)omics effects on individuals or their descendants, after exposure to single or combined environm…

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published