Giter Club home page Giter Club logo

bedtools-python's Introduction

Project:bedtools-python
Version: 0.1.0
Authors: Aaron Quinlan, University of Virginia
Brent Pedersen, University of California, Berkeley
Contact: [email protected]

bedtools-python

1. Requirements

  1. Cython
  • sudo easy_install cython
  1. GNU compiler
  2. zlib

2. Installation

python setup.py install
./test.sh
# Try it out
examples/ex0-echo.py
examples/ex1-intersect.py
examples/ex2-pysam-and-bedtools.py
examples/ex3-fasta-from-bed.py
examples/ex4-window.py

3. The API

Still need to document this.

4. Examples

Below is a brief example to whet your appetite. For more details on how to use the API, check out the examples/ directory.

>>> from bedtools import IntervalFile
>>>
>>>
>>> exons = IntervalFile("bedtools/tests/data/exons.hg18.chr21.bed")
>>> rmsk  = IntervalFile("bedtools/tests/data/rmsk.hg18.chr21.bed")
>>>
>>> # find exons that overlap with repeat annotations
>>> ex = exons.next()
>>> for hit in rmsk.search(ex):
...      print ex.chrom,  ex.start,  ex.end,\
...            hit.chrom, hit.start, hit.end,
chr21 9928613 9928911 chr21 9928614 9928678

bedtools-python's People

Contributors

arq5x avatar brentp 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.