Skip to main content

Libraries and applications for working with calculated polygenic scores

Project description

pgscatalog.calc

Run CI on pgscatalog.calc Documentation Status

[!IMPORTANT]

  • In 1.0.0-alpha.1 programs to calculate polygenic scores were added to this package
  • The pgsc_calc load and pgsc_calc score programs are pre-release software that support basic PGS calculation only (chromosomes 1-22, indexed VCF and BGEN files, no ancestry adjustment)
  • The simplest way to calculate polygenic scores with this software is to use v3 of the PGS Catalog Calculator
  • Documentation for this package and more PGS calculation features will be added to future releases

This Python package contains:

  • CLI applications to aggregate and adjust calculated polygenic scores (PGS) in the context of genetic ancestry similarity
  • library classes and functions for working with calculated PGS and PCA data
Application Description Link
pgsc_calc load Query an indexed VCF/BGEN and create a zarr zip archive pgsc_calc load --help
pgsc_calc score Calculate polygenic scores from zarr zip archives pgsc_calc score --help
pgscatalog-aggregate Aggregate calculated PGS split across multiple files README
pgscatalog-ancestry-adjust Adjust calculated PGS in the context of genetic ancestry README

If you want to write Python code to work with PGS data, the library may be helpful for you.

Installation

install with bioconda

or install via pip:

$ pipx install pgscatalog.calc

Documentation

Documentation is available at https://pygscatalog.readthedocs.io/.

Developer instructions

You'll need nox and uv installed.

To get set up with a development environment run:

$ nox -s dev
$ source .venv/bin/activate

This will create a virtual environment in the current directory.

$ pgscatalog-aggregate --help

nox can also be used to run tests and lint the package:

$ nox

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

pgscatalog_calc-1.0.0a1.tar.gz (9.7 MB view details)

Uploaded Source

Built Distribution

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

pgscatalog_calc-1.0.0a1-py3-none-any.whl (79.8 kB view details)

Uploaded Python 3

File details

Details for the file pgscatalog_calc-1.0.0a1.tar.gz.

File metadata

  • Download URL: pgscatalog_calc-1.0.0a1.tar.gz
  • Upload date:
  • Size: 9.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pgscatalog_calc-1.0.0a1.tar.gz
Algorithm Hash digest
SHA256 5c42efa298df17610434f4a6f3ede71b260d61f353e15174ce766104aa479d0f
MD5 fcdbb6eca797cde4d51db0ccab87c6a2
BLAKE2b-256 368c74a7a9c5239da5e848dd8f63023afa51f43c7e30948f5cd57d79b2112ef4

See more details on using hashes here.

Provenance

The following attestation bundles were made for pgscatalog_calc-1.0.0a1.tar.gz:

Publisher: publish.yml on PGScatalog/pygscatalog

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pgscatalog_calc-1.0.0a1-py3-none-any.whl.

File metadata

File hashes

Hashes for pgscatalog_calc-1.0.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 490a4e8e5972750255ea14315db4633a2b1967b2114559e898f49790ef216724
MD5 104fb287dadc3bec7b28337c16a40428
BLAKE2b-256 8838d40f951b3524254b81e7bb263a78168306c6ce9c7c3ec2855bb60c8079bf

See more details on using hashes here.

Provenance

The following attestation bundles were made for pgscatalog_calc-1.0.0a1-py3-none-any.whl:

Publisher: publish.yml on PGScatalog/pygscatalog

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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