GithubHelp home page GithubHelp logo

chris1221 / lanceotron Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 10.13 MB

Command-line interface to the LanceOTron deep learning peak caller

Home Page: http://chrisbcole.me/lanceotron/

Python 100.00%

lanceotron's Introduction

LanceOTron CLI

PyPI version Downloads CircleCI codecov

A bare-bones interface to the trained LanceOTron (LoT) model from the command line.

Installation

pip install lanceotron

Local installation

  1. Clone the repository.
  2. Install dependencies with pip.
  3. Install the package.
  4. Run tests to ensure that everything is working.
git clone [email protected]:Chris1221/lanceotron.git; cd lanceotron # Step 1
pip install -r requirements.txt # Step 2
pip install -e . # Step 3
python -m unittest

Usage

To see available commands, use the --help flag.

lanceotron --help

Call Peaks

To call peaks from a bigWig track, use the callPeaks command.

Option Description Default
file BigWig Track to analyse
-t, --threshold Threshold for selecting candidate peaks 4
-w, --window Window size for rolling mean to select candidate peaks 400
-f, --folder Output folder "./"
--skipheader Skip writing the header False

Call Peaks with Input

To call peaks from a bigWig track with an input file, use the callPeaks_Input command.

Option Description Default
file BigWig track to analyse
-i, --input Control input track to calculate significance of peaks
-t, --threshold Threshold for selecting candidate peaks 4
-w, --window Window size for rolling mean to select candidate peaks 400
-f, --folder Output folder "./"
--skipheader Skip writing the header False

Score a Bed file

To score the peaks in an existing Bed file, use the scoreBed command.

Option Description Default
file BigWig Track to analyse
-b, --bed Bed file of regions to be scored
-f, --folder Output folder "./"
--skipheader Skip writing the header False

Examples

There is a basic bigWig file included in the test subdirectory. To try out the caller, execute it on this file.

lanceotron callPeaks test/chr22.bw -f output_folder

Citation

@article {Hentges2021.01.25.428108,
	author = {Hentges, Lance D. and Sergeant, Martin J. and Downes, Damien J. and Hughes, Jim R. and Taylor, Stephen},
	title = {LanceOtron: a deep learning peak caller for ATAC-seq, ChIP-seq, and DNase-seq},
	year = {2021},
	doi = {10.1101/2021.01.25.428108},
	publisher = {Cold Spring Harbor Laboratory},
	URL = {https://www.biorxiv.org/content/early/2021/01/27/2021.01.25.428108},
	journal = {bioRxiv}
}

Building the documentation

To serve the documentation locally, use

python -m mkdocs serve

Bug Reports and Improvement Suggestions

Please raise an issue if there is anything you wish to ask or contribute.

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.