GithubHelp home page GithubHelp logo

msauria / higlass-server Goto Github PK

View Code? Open in Web Editor NEW

This project forked from higlass/higlass-server

0.0 2.0 0.0 125.42 MB

License: MIT License

Python 82.82% Shell 1.10% Jupyter Notebook 16.08%

higlass-server's Introduction

higlass-server

The HiGlass Server supports the HiGlass Client by providing APIs for accessing and uploading tile files generated by Clodius.

Note that the HiGlass Server itself only provides an API, and does not server any HTML.

Easy Docker install

The easiest way to run HiGlass is with Docker. More information is available at higlass-docker.

Development

Local

Note: We recommend creating a virtual environment for higlass-server after cloning, e.g.: virtualenv ~/higlass-server-env && source ~/higlass-server-env/bin/activate, to avoid conflicts.

git clone https://github.com/hms-dbmi/higlass-server.git && cd higlass-server
pip install --upgrade -r requirements.txt
pip install --upgrade -r requirements-secondary.txt
python manage.py migrate
python manage.py runserver localhost:8000 &

Docker

Alternatively, there is a Dockerfile which provides a quick way to get an isolated development environment configured.

Uploading files

Although there is an API endpoint for uploading files, but it is more direct to use a manage.py script:

COOLER=dixon2012-h1hesc-hindiii-allreps-filtered.1000kb.multires.cool
HITILE=wgEncodeCaltechRnaSeqHuvecR1x75dTh1014IlnaPlusSignalRep2.hitile

wget -P data/ https://s3.amazonaws.com/pkerp/public/$COOLER
wget -P data/ https://s3.amazonaws.com/pkerp/public/$HITILE

python manage.py ingest_tileset --filename data/$COOLER --filetype cooler --datatype matrix --uid cooler-demo
python manage.py ingest_tileset --filename data/$HITILE --filetype hitile --datatype vector --uid hitile-demo

We can now use the API to get information about a tileset, or to get the tile data itself:

curl http://localhost:8000/api/v1/tileset_info/?d=hitile-demo
curl http://localhost:8000/api/v1/tiles/?d=hitile-demo.0.0.0

Preparing files for ingest

Genomics data needs to be aggregated across a range of scales before it can be used with HiGlass.

Cooler files

TODO: Is this still accurate?

Cooler files store Hi-C data. They need to be decorated with aggregated data at multiple resolutions in order to work with higlass-server. This is easily accomplished by simply installing the cooler python package and running the recursive_agg_onefile.py script. For now this has to come from a clone of the official cooler repository, but this will hopefully be merged into the main branch shortly.


git clone -b develop https://github.com/pkerpedjiev/cooler.git
cd cooler
python setup.py install

recursive_agg_onefile.py file.cooler --out output.cooler

BigWig files

BigWig files can be aggregated with the Clodius.

TODO: Any other types?

Development

After you've done an installation from source you're ready to go. You can use ./test.sh to run the same tests that Travis will run.

Upgrades

bumpversion patch

higlass-server's People

Contributors

pkerpedjiev avatar mccalluc avatar flekschas avatar jacobluber avatar scottx611x avatar jeewon-hwang avatar ngehlenborg avatar

Watchers

James Cloos avatar Michael Sauria 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.