Skip to main content

A robust, parallelized Python CLI for annotating three_prime_UTR

Project description

peaks2utr: a robust, parallelized Python CLI for annotating 3' UTR

PYPI - Version PYPI - Python Version License: GPL v3

peaks2utr is a Python command-line tool that annotates 3' untranslated regions (UTR) for a given set of aligned sequencing reads in BAM format, and canonical annotation in GFF or GTF format. peaks2utr uses MACS3 (https://pypi.org/project/MACS3/) to call broad "peaks" of significant read coverage in the BAM file, and uses those peaks that pass a set of criteria as a basis to annotate novel 3' UTRs. This favours BAM files from the likes of 10x Chromium runs, where signal is inherently concentrated at the distal ends of the 3' or 5' UTRs. Reads containing soft-clipped bases and polyA-tails of a given length are detected, and their end bases tallied as "truncation points". When piled up, each co-occurring truncation point is used to determine the precise end base of a given UTR. peaks2utr can be tuned to extend, override or ignore any pre-existing 3' UTR annotations in the input GFF file.

Installation

Install latest release with:

pip install peaks2utr

Alternatively, to install from source:

git clone https://github.com/haessar/peaks2utr.git
cd peaks2utr
python3 -m build
python3 -m pip install dist/*.tar.gz

Dependencies

Installation instructions assume a Debian / Ubuntu system with root privileges. Follow the links for instructions for other systems.

Required

bedtools

apt-get install bedtools

Optional

GenomeTools (for post-processing of output gff3)

apt-get install genometools

Quick start

Download demo reference annotations Tb927_01_v5.1.gff and bam file Tb927_01_v5.1.slice.bam and run

peaks2utr Tb927_01_v5.1.gff Tb927_01_v5.1.slice.bam

When complete, you should see a file Tb927_01_v5.1.new.gff which contains original annotations as well as 3' UTRs with source "peaks2utr".

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

peaks2utr-0.5.tar.gz (10.6 MB view details)

Uploaded Source

Built Distribution

peaks2utr-0.5-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

File details

Details for the file peaks2utr-0.5.tar.gz.

File metadata

  • Download URL: peaks2utr-0.5.tar.gz
  • Upload date:
  • Size: 10.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.7

File hashes

Hashes for peaks2utr-0.5.tar.gz
Algorithm Hash digest
SHA256 f65bc881cf36d406af5e571710ad5d51b3df5de1ecc6c9ce4f51c94cc03b3d63
MD5 3bd4c556602d6ae5525bddfbb491f759
BLAKE2b-256 6669081c306a48e168e7250204cd89aa2b8bce54a55881055feee212fdd27e13

See more details on using hashes here.

File details

Details for the file peaks2utr-0.5-py3-none-any.whl.

File metadata

  • Download URL: peaks2utr-0.5-py3-none-any.whl
  • Upload date:
  • Size: 16.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.7

File hashes

Hashes for peaks2utr-0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 f032ad913d1eb7ad9acc0d3bb46a242abc8890803719f256c57e304145656a73
MD5 ec33440d43b1a541d58f335f8f998645
BLAKE2b-256 fc1a9a59776bc6190ed1738772f6765fe86ff36ef037f69156c9aefefa0107c0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page