Coder Social home page Coder Social logo

sergpolly / clodius Goto Github PK

View Code? Open in Web Editor NEW

This project forked from higlass/clodius

0.0 1.0 0.0 26.99 MB

Clodius is a tool for breaking up large data sets into smaller tiles that can subsequently be displayed using an appropriate viewer.

License: MIT License

Python 71.56% Shell 0.40% Jupyter Notebook 27.87% Makefile 0.06% Dockerfile 0.12%

clodius's Introduction

Dummy change to see if travis would fail , because of pysam-developers/pysam#860 (comment)

Clodius

Build Status Docs

Displaying large amounts of data often requires first turning it into not-so-large amounts of data. Clodius is a program and library designed to aggregate large datasets to make them easy to display at different resolutions.

Demo

Install the clodius package:

pip install clodius

And use it aggregate a bigWig file:

clodius aggregate bigwig ~/Downloads/E116-DNase.fc.signal.bigwig

The output files can then be displayed using the higlass-docker container. For more information about viewing these types of files take a look at the higlass wiki.

More examples are available.

File Types

Development

The recommended way to develop clodius is to use a conda environment and install clodius with develop mode:

pip install -e .

Testing

The unit tests for clodius can be run using pytest:

pytest

Individual unit tests can be specified by indicating the file and function they are defined in:

pytest test/cli_test.py:test_clodius_aggregate_bedgraph

Quick start with Docker

If you don't have your own, get some sample data:

mkdir -p /tmp/clodius/input
mkdir -p /tmp/clodius/output
curl https://raw.githubusercontent.com/hms-dbmi/clodius/develop/test/sample_data/geneAnnotationsExonsUnions.short.bed \
  > /tmp/clodius/input/sample.short.bed

Then install Docker, and pull and run the Clodius image:

docker stop clodius;
docker rm clodius;

docker pull gehlenborglab/clodius # Ensure that you have the latest.

docker run -v /tmp/clodius/:/tmp/ \
           gehlenborglab/clodius \
           clodius aggregate bigwig /tmp/input/file.bigwig

ls /tmp/clodius/output # Should contain the output file

If you already have a good location for your input and output files, reference that in the -v arguments above, instead of /tmp/clodius. The other scripts referenced below can be wrapped similarly.

clodius's People

Contributors

alexpreynolds avatar flekschas avatar keller-mark avatar liz-is avatar lmercadom avatar manzt avatar mccalluc avatar mildewey avatar ngehlenborg avatar nvictus avatar pkerpedjiev avatar scottx611x avatar sergpolly avatar zhqu1148980644 avatar

Watchers

 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.