Giter Club home page Giter Club logo

straw's Introduction

straw: Extract data quickly from Juicebox via straw

Straw is a fast implementation of reading/dump for .hic files. Available in C++, R, and Python.

There are two Python versions - a pure Python one and a version where the C++ code is bound with pybind11. The latter is much faster.

Quick Start Python

For the fastest version, you must have pybind11 installed.

Clone the library and cd into the straw/ directory.

pip install ./pybind11_python

Then run via import strawC and strawC.strawC

    Example:
    >>>import strawC
    >>>result = strawC.strawC('NONE', 'HIC001.hic', 'X', 'X', 'BP', 1000000)
    >>>for i in range(len(result)):
    ...   print("{0}\t{1}\t{2}".format(result[i].binX, result[i].binY, result[i].counts))

For the pure Python version:

pip install ./python

Then run via import straw and straw.straw

Some more information on running: https://github.com/aidenlab/straw/tree/master/python

Compile on Linux

     g++ -std=c++0x -o straw main.cpp straw.cpp -lcurl -lz

Please see the wiki for more documentation.

For questions, please use the Google Group.

Ongoing development work is carried out by Neva C. Durand and Yue Wu.

If you use this tool in your work, please cite

Neva C. Durand, James T. Robinson, Muhammad S. Shamim, Ido Machol, Jill P. Mesirov, Eric S. Lander, and Erez Lieberman Aiden. "Juicebox provides a visualization system for Hi-C contact maps with unlimited zoom." Cell Systems 3(1), 2016.

straw's People

Contributors

nchernia avatar sa501428 avatar mikeaalv avatar zozo123 avatar theaidenlab avatar rraadd88 avatar emilyziyiye avatar srcoulombe avatar tjnitram avatar carlvitzthum avatar lidaof avatar kiararey 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.