Coder Social home page Coder Social logo

lokeshchinthala / genenetwork2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from genenetwork/genenetwork2

0.0 1.0 0.0 357.13 MB

GeneNetwork (2nd generation)

Home Page: http://gn2.genenetwork.org/

License: GNU Affero General Public License v3.0

Python 58.76% HTML 27.90% CSS 2.37% JavaScript 10.49% Shell 0.48%

genenetwork2's Introduction

DOI JOSS Actions Status

GeneNetwork

This repository contains the current source code for GeneNetwork (GN) (https://www.genenetwork.org/ (version 2). GN2 is a Web 2.0-style framework that includes data and computational tools for online genetics and genomic analysis of many different populations and many types of molecular, cellular, and physiological data. The system is used by scientists and clinians in the field of precision health care and systems genetics. GN and its predecessors have been in operation since Jan 1994, making it one of the longest-lived web services in biomedical research (https://en.wikipedia.org/wiki/GeneNetwork, and see a partial list of publications using GN and its predecessor, WebQTL (https://genenetwork.org/references/).

Install

The recommended installation is with GNU Guix which allows you to deploy GN2 and dependencies as a self contained unit on any machine. The database can be run separately as well as the source tree (for developers). See the installation docs.

Run

Once having installed GN2 it can be run through a browser interface

genenetwork2

A quick example is

env GN2_PROFILE=~/opt/gn-latest SERVER_PORT=5300 GENENETWORK_FILES=~/data/gn2_data/ ./bin/genenetwork2 ./etc/default_settings.py -gunicorn-dev

For full examples (you may need to set a number of environment variables), including running scripts and a Python REPL, also see the startup script ./bin/genenetwork2.

Also mariadb and redis need to be running, see INSTALL.

Testing

To have tests pass, the redis and mariadb instance should be running, because of asserts sprinkled in the code base.

Right now, the only tests running in CI are unittests. Please make sure the existing unittests are green when submitting a PR.

See ./bin/genenetwork2 for more details.

Mechanical Rob

We are building 'Mechanical Rob' automated testing using Python requests which can be run with:

env GN2_PROFILE=~/opt/gn-latest ./bin/genenetwork2 ./etc/default_settings.py -c ../test/requests/test-website.py -a http://localhost:5003

The GN2_PROFILE is the Guix profile that contains all dependencies. The ./bin/genenetwork2 script sets up the environment and executes test-website.py in a Python interpreter. The -a switch says to run all tests and the URL points to the running GN2 http server.

Unit tests

To run unittests, first cd into the genenetwork2 directory:

# You can use the coverage tool to run the tests
# You could omit the -v which makes the output verbose
runcmd coverage run -m unittest discover -v

# Alternatively, you could run the unittests using:
runpython -m unittest discover -v

# To generate a report in wqflask/coverage_html_report/:
runcmd coverage html

The runcmd and runpython are shell aliases defined in the following way:

alias runpython="env GN2_PROFILE=~/opt/gn-latest TMPDIR=/tmp SERVER_PORT=5004 GENENETWORK_FILES=/gnu/data/gn2_data/ ./bin/genenetwork2

alias runcmd="time env GN2_PROFILE=~/opt/gn-latest TMPDIR=//tmp SERVER_PORT=5004 GENENETWORK_FILES=/gnu/data/gn2_data/ ./bin/genenetwork2 ./etc/default_settings.py -cli"

Replace some of the env variables as per your use case.

Documentation

User documentation can be found here. The architecture of the software stack is described here. The database schema is (still) shared with GN1 and currently described here. Software documentation is being expanded in the source code repository.

Contributing

Issues can be raised through github.

Contribute to GN2 source code by forking the github repository with git and sending us pull requests.

For development GN2 has a mailing list and an active IRC channel #genenetwork on freenode.net with a web interface.

License

The GeneNetwork2 source code is released under the Affero General Public License 3 (AGPLv3). See LICENSE.txt.

More information

For more information visit http://www.genenetwork.org/

Cite

JOSS

GeneNetwork was published in the Journal of Open Source Software as 'GeneNetwork: framework for web-based genetics' by Zachary Sloan, Danny Arends, Karl W. Broman, Arthur Centeno, Nicholas Furlotte, Harm Nijveen, Lei Yan, Xiang Zhou, Robert W. WIlliams and Pjotr Prins

You may also cite the software using

DOI.

Contact

IRC on #genenetwork on irc.freenode.net.

Code and primary web service managed by Dr. Robert W. Williams and the University of Tennessee Health Science Center, Memphis TN, USA.

genenetwork2's People

Contributors

zsloan avatar pjotrp avatar bonfacekilz avatar alexanderlacuna avatar fredmanglis avatar dannyarends avatar originalpenguin avatar lomereiter avatar uditgulati avatar hazamarek avatar acenteno avatar robwwilliams avatar brainiarc7 avatar arfon avatar jgarte avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.