Skip to main content

UROPA is a command line based tool, intended for genomic region annotation

Project description

Universal RObust Peak Annotator

Anaconda-Server Badge Docker Badge PyPI Version

The Universal RObust Peak Annotator (UROPA) is a command line based tool, intended for genomic region annotation. Based on a configuration file, different target features can be prioritized with multiple integrated queries. These can be sensitive for feature type, distance, strand specificity, feature attributes (eg. protein_coding) or the anchor position relative to the feature. UROPA can incorporate reference annotation files (GTF) from different sources, like Gencode, Ensembl, or RefSeq, as well as custom reference files produced by the user.

Features

  • Detect the most appropriate annotation with flexible parameter keys that allow robustness and simple customization, such as

    • feature type
    • feature anchor
    • feature direction relative to peak location
    • filter for attribute values, e.g. “protein_coding”
    • strand specificity
  • Utilization of all available GTF files as annotation database

  • One run with variable sets of parameters by multiple queries

  • Graduated annotation due to priorization

  • Different easily-readable output tables (allhits, finalfits, besthits).

  • Visual summary for annotation evaluation

  • Preparation of custom annotation files

Documentation

A detailed description of how to apply UROPA to your data can be found here.

Installation

From PyPI

You can install UROPA by simply running:

pip install uropa

Conda package manager

You can also install UROPA using the conda package manager. Make sure to have conda installed, e.g. via

  • Miniconda
    • download the Miniconda installer for Python 3
    • run bash Miniconda3-latest-Linux-x86_64.sh to install Miniconda
    • Answer the question "Do you wish the installer to prepend the Miniconda install location to PATH in your /home/.../.bashrc ?" with yes OR do PATH=dir/to/miniconda3:$PATH after installation process

The UROPA installation is now as easy as
conda create --name uropa
conda activate uropa
conda install python uropa -c bioconda

Biocontainers / Docker

If you have a running Docker environment, you can pull a biocontainer with UROPA and all dependencies via

  • docker pull quay.io/biocontainers/uropa:latest_tag using the latest tag from the taglist, e.g. 1.2.1--py27r3.3.2_0

Usage

Test command

It is possible to run UROPA using either a config file (supports multiple queries):

uropa -i sample_config.json -t 4 

Or directly using a .bed-file (supports only one query):

uropa --bed test_data/genomic_regions.bed --gtf test_data/gencode.v29.annotation.chr19.gtf

Command-line usage

To effectively use UROPA, make yourself familiar with the command-line options:

$ uropa                   
Usage: uropa [options]          

optional arguments:
  -h, --help                       show this help message and exit

Arguments for one query:
  -b , --bed                       Filename of .bed-file to annotate
  -g , --gtf                       Filename of .gtf-file with features
  --feature [ [ ...]]              Feature for annotation
  --feature_anchor [ [ ...]]       Feature anchor to annotate to
  --distance [ [ ...]]             Maximum permitted distance from feature (1 or 2
                                   arguments)
  --strand [ [ ...]]               Desired strand of annotated feature relative to peak
  --relative_location [ [ ...]]    Peak locaion relative to feature location
  --internals                      Set minimum overlap fraction for internal feature
                                   annotations. 0 equates to internals=False and 1 equates
                                   to internals=True. Default is False.
  --filter_attribute               Filter on 9th column of GTF
  --attribute_values [ [ ...]]     Value(s) of attribute corresponding to
                                   --filter_attribute
  --show_attributes [ [ ...]]      A list of attributes to show in output

Multi-query configuration file:
  -i config.json, --input config.json
                                   Filename of configuration file (keys in this file
                                   overwrite command-line arguments about query)

Additional arguments:
  -p , --prefix                    Prefix for result file names (defaults to basename of
                                   .bed-file)
  -o , --outdir                    Output directory for output files (default: current
                                   dir)
  -s, --summary                    Filename of additional visualisation of results in
                                   graphical format
  -t n, --threads n                Multiprocessed run: n = number of threads to run
                                   annotation process
  -l uropa.log, --log uropa.log    Log file name for messages and warnings (default: log
                                   is written to stdout)
  -d, --debug                      Print verbose messages (for debugging)
  -v, --version                    Prints the version and exits

Biocontainer usage

Running UROPA from a docker container can be done using the following command:

sudo docker run --rm -v <path-to-input-files-on-HOST>:<path-to-container-mnt> UROPA:LATEST uropa <UROPA-Paramters> -p <path-to-container-mnt>/'your-file-prefix'

-v parameter mounts a HOST folder into your docker CONTAINER. This folder should contain the input files for UROPA and also the result files will be stored here. No files will be stored in the container!

--rm removes/closes the container after the run

Make sure to use the uropa -p option specifying the output directory and prefix, otherwise results are lost in the container environment.

How to cite

Kondili M, Fust A, Preussner J, Kuenne C, Braun T, and Looso M. UROPA: a tool for Universal RObust Peak Annotation. Scientific Reports 7 (2017), doi: 10.1038/s41598-017-02464-y

Contribute

Support

If you have any questions please feel free to contact Mario Looso (mario.looso@mpi-bn.mpg.de).

License

The project is licensed under the MIT License.

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

uropa-4.0.3.tar.gz (3.9 MB view details)

Uploaded Source

File details

Details for the file uropa-4.0.3.tar.gz.

File metadata

  • Download URL: uropa-4.0.3.tar.gz
  • Upload date:
  • Size: 3.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for uropa-4.0.3.tar.gz
Algorithm Hash digest
SHA256 e0b648881b95f301e3f3ecc924314995312f10b0cbabf96d5a5ce2fb18c53a59
MD5 fdd298de6a047cb0ef58deb52a02b194
BLAKE2b-256 4d4f805427c9b158b0505c91eb163cb0a4d1bb2f469f2932a6765019aacb301e

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