Skip to content

AntoinePassemiers/ChIP-seq-Peak-Caller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChIP-seq peak calling

This repository hosts the implementation of a minimalist peak caller based on Savitzky-Golay filtering and Poisson modelling, intended to be used on ChIP-seq data.

Load a bedGraph file: tags are assumed to be equally spaced (e.g. 100 bases).

from chipseq.io import BedGraphIO

filepath = ... # Location of the bedGraph file
chromosomes = BedGraphIO.read(filepath)

Call peaks on each chromosome separately:

from chipseq import call_peaks

alpha = 1e-5 # Significance threshold
called_peaks = { c.name: call_peaks(
        c, alpha=alpha, apply_filter=False) for c in chromosomes }

Write the results in a text file:

BedGraphIO.write(called_peaks.values(), 'chipseq.out')

Illustration of the method on the 3000 first tags of chromosome 2L of Drosophila melanogaster.

alt text

Installation

The peak caller can be installed with the following command:

python setup.py install

Dependencies

  • Numpy
  • Scipy

About

Peak Calling algorithm for Chromatin-immunoprecipitation sequencing (ChIP-seq) data

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages