Skip to main content

gsalib makes it easy for Python users to analyze metrics reports created by the Broad Institute’s Genome Analysis Toolkit (GATK). The Broad provides an R library called gsalib that allows you to load GATKReport files into R for further analysis (https://gatkforums.broadinstitute.org/gatk/discussion/1244/what-is-the-gatkreport-file-format). Python gsalib is an adaptation of the R libray that allows you to load GATKReport files into Python/pandas DataFrames.

Neither the R nor Python versions of gsalib support the samtools.metrics reports created by Picard Tools. To analyze Picard reports with Python, consider using the picard.parse function in the Crimson module.

Features

  • Enables analysis of GATK reports with powerful pandas DataFrames and plotting

  • Reads GATKReport versions 0.x and 1.x

  • Compatible with Python >=2.7 and >=3.4

Installation

Install gsalib by running

pip install gsalib

Example

Read a report and get a table’s DataFrame:

from gsalib import GatkReport

report = GatkReport('/path/to/gsalib/test/test_v1.0_gatkreport.table')
table = report.tables['ExampleTable']

Documentation

https://gsalib.readthedocs.io/en/latest/

Contribute

License

The project is licensed under the MIT license.

Metadata

Release files for gsalib 1.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gsalib 1.0.6
File Size Uploaded
gsalib-1.0.6.tar.gz 23.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gsalib 1.0.6
File Interpreter ABI Platform
gsalib-1.0.6-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 30.0 kB

Release files / gsalib-1.0.6.tar.gz

Download URL gsalib-1.0.6.tar.gz
Size 23.1 kB
Tags Source
SHA-256 checksum
How to use checksums
43ce95242625826f5b339f7e250a0a259e78af4a821300f75dfcf470e590a0e1
BLAKE2b-256 checksum
How to use checksums
2b92ee3f35c37df93752985c1fdb03579cbd18ffd2f356228ecf1d5fa4e8d989
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gsalib-1.0.6-py2.py3-none-any.whl

Download URL gsalib-1.0.6-py2.py3-none-any.whl
Size 7.0 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
00e59671709beb8859686d584075fa4a1f19a0a23002094ccb5e6256c5d2237b
BLAKE2b-256 checksum
How to use checksums
b16262883a6e4c8671a28a4bbc7b7119e11274c86e77a8dafa88d75fbeda2b41
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0.6 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page