Skip to main content

Papolarity is a tool to analyze polarity of transcriptomic alignments such as Ribo-seq and RNA-seq.

Project description

Papolarity

Papolarity is a Python package for analysis of transcript-level short read coverage profiles.

For a single sample, for each transcript papolarity allows for computing the classic polarity metric which, in the case of Ribo-Seq, reflects ribosome positional preferences.

For comparison versus a control sample, papolarity estimates an improved metric, the relative linear regression slope of coverage along transcript length. This involves de-noising by profile segmentation with a Poisson model (using pasio), and aggregation of Ribo-Seq coverage within segments, thus achieving reliable estimates of the regression slope.

Toolkit

Papolarity provide a toolkit to perform different tasks necessary for processing transcriptomic data such as Ribo-Seq alignments. The package is organized as a single entry point for a set of subcommands.

You can run it with: papolarity [arguments] or python -m papolarity [arguments] if you need to specify a certain version of python to run a package.

Note that at a moment only Python 3.7 is supported; probably this restriction will be relaxed later. Python 3.8 is not supported yet because pysam (dependency of pybedtools which is necessary for some steps) can't be compiled for that version of python.

There are no conventions about a structure of folders and file names. All files that are used by tool are always specified in command line arguments.

Papolarity have a few conventions about file extensions: all files with .gz extension are treated as gzip archives. Input files with names ending with .gz will be automatically unpacked, output files will be automatically packed. Character - instead of filename will be treated as stdin or stdout. It can be useful to use papolarity in pipelined commands.

You can follow the protocol to get the idea how these tools are supposed to be used. If you need to customize pipelines, please reference to help for corresponding tools: papolarity --help lists all available tools. papolarity <cmd> --help shows description of all arguments and options for a specified tool.

Protocol

In our paper "Estimating positional distribution of ribosomes along transcripts: from polarity to regression slope" (doi:will be soon) we describe a protocol for Ribo-Seq analysis. In a file protocol-paper.sh you can find a script we used in a paper to process our datasets. It's slightly modified for better readability compared to a paper, and is more easily customizable. Also it has a few additional commands to generate plots which are absent in paper. Steps are named after paper sections.

You can use this protocol as is or change any parts you wish. As long as you comply with data formats and use consistent data (e.g. all files should be clipped in the same manner, or non-clipped at all), papolarity will work, order of commands, folder names, filenames and so on doesn't matter.

To run this pipeline, you should have several auxiliary tools installed: csvtk, GNU parallel, and python package pasio.

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

papolarity-0.0.3.post10.tar.gz (26.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

papolarity-0.0.3.post10-py2.py3-none-any.whl (35.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file papolarity-0.0.3.post10.tar.gz.

File metadata

  • Download URL: papolarity-0.0.3.post10.tar.gz
  • Upload date:
  • Size: 26.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.0

File hashes

Hashes for papolarity-0.0.3.post10.tar.gz
Algorithm Hash digest
SHA256 7e675b10e3d9ee52a346632095b97d3434c399b7db13aca0ff836678f2a3e227
MD5 ede68de26c5f38232f2a791a2e7927cd
BLAKE2b-256 2eef71683634154486550596cdd9389b172ea6d4f334efad14aa7825c2eb8f18

See more details on using hashes here.

File details

Details for the file papolarity-0.0.3.post10-py2.py3-none-any.whl.

File metadata

  • Download URL: papolarity-0.0.3.post10-py2.py3-none-any.whl
  • Upload date:
  • Size: 35.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.0

File hashes

Hashes for papolarity-0.0.3.post10-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9ed8c7d63989e4e325f040ccfcbdc6d2bc9d5e3564ab557621e6eb4d2445a919
MD5 5766e765957482ce8d2599e2f50850d2
BLAKE2b-256 cf83bf6ffc69f477b76e467a7cf279b6573c08de7c8bf0af1a265043b9e7728f

See more details on using hashes here.

Supported by

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