A robust, parallelized Python CLI for annotating three_prime_UTR
Project description
peaks2utr: a robust, parallelized Python CLI for annotating 3' UTR
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
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file peaks2utr-0.5.2.tar.gz
.
File metadata
- Download URL: peaks2utr-0.5.2.tar.gz
- Upload date:
- Size: 16.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18e9dc4188b62df8ee1b02db7806943599365a731a85c3c8b438bd13c712b2c7 |
|
MD5 | 91d0647f134961d01c6f889dbbf087ef |
|
BLAKE2b-256 | 2a3f304ddd48e595569589d2f12dc3842995c14f50961c21ddfadd51e16eb2b7 |
File details
Details for the file peaks2utr-0.5.2-py3-none-any.whl
.
File metadata
- Download URL: peaks2utr-0.5.2-py3-none-any.whl
- Upload date:
- Size: 17.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c4fed13253bf3b61b596aee13d8cb1909d2bfee815d0eea6776924d7784f342 |
|
MD5 | 6c5d8e473723df8f5df380f32f807551 |
|
BLAKE2b-256 | 66829b885f47162bbb7f17d735a6099f70d70c99666f6141ec2361d16ea951ae |