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

CI PYPI - Version PYPI - Python Version License: GPL v3 DOI

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 MACS (https://pypi.org/project/MACS2/) 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

To check that peaks2utr has installed correctly, simply run the following in your terminal to initiate a short run with default parameters

peaks2utr-demo

This uses a small demo set of input files contained in the repository: 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-1.3.2.tar.gz (10.6 MB view details)

Uploaded Source

Built Distribution

peaks2utr-1.3.2-py3-none-any.whl (10.6 MB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for peaks2utr-1.3.2.tar.gz
Algorithm Hash digest
SHA256 ddf7c44725124aabcc4541e567f493de9658b2036a0a804d997376a7bf6b0828
MD5 5db9cf054f16b2230ded3383d71a22ea
BLAKE2b-256 f5fdbf7e9afe12451a6a4f14e294dc061bf4291cd1611d9d106f181310a07d17

See more details on using hashes here.

File details

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

File metadata

  • Download URL: peaks2utr-1.3.2-py3-none-any.whl
  • Upload date:
  • Size: 10.6 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for peaks2utr-1.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1468164a3c4baebbbca1c54702e537507a132efcdd59e42624c90d02b3b3c490
MD5 a74c148b188cb2782e9777d129104f27
BLAKE2b-256 89a7fa6ca4da79911dc3f65f8a1fc1c1fa31f1ad942bf2fb18160f37af7ebb12

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