Libraries and applications for working with calculated polygenic scores
Project description
pgscatalog.calc
[!IMPORTANT]
- In
1.0.0-alpha.1programs to calculate polygenic scores were added to this package- The
pgsc_calc loadandpgsc_calc scoreprograms 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
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
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c42efa298df17610434f4a6f3ede71b260d61f353e15174ce766104aa479d0f
|
|
| MD5 |
fcdbb6eca797cde4d51db0ccab87c6a2
|
|
| BLAKE2b-256 |
368c74a7a9c5239da5e848dd8f63023afa51f43c7e30948f5cd57d79b2112ef4
|
Provenance
The following attestation bundles were made for pgscatalog_calc-1.0.0a1.tar.gz:
Publisher:
publish.yml on PGScatalog/pygscatalog
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pgscatalog_calc-1.0.0a1.tar.gz -
Subject digest:
5c42efa298df17610434f4a6f3ede71b260d61f353e15174ce766104aa479d0f - Sigstore transparency entry: 757582065
- Sigstore integration time:
-
Permalink:
PGScatalog/pygscatalog@72b9d421a062508a5f2d4392bdce23ffcc8d6c10 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/PGScatalog
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@72b9d421a062508a5f2d4392bdce23ffcc8d6c10 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file pgscatalog_calc-1.0.0a1-py3-none-any.whl.
File metadata
- Download URL: pgscatalog_calc-1.0.0a1-py3-none-any.whl
- Upload date:
- Size: 79.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
490a4e8e5972750255ea14315db4633a2b1967b2114559e898f49790ef216724
|
|
| MD5 |
104fb287dadc3bec7b28337c16a40428
|
|
| BLAKE2b-256 |
8838d40f951b3524254b81e7bb263a78168306c6ce9c7c3ec2855bb60c8079bf
|
Provenance
The following attestation bundles were made for pgscatalog_calc-1.0.0a1-py3-none-any.whl:
Publisher:
publish.yml on PGScatalog/pygscatalog
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pgscatalog_calc-1.0.0a1-py3-none-any.whl -
Subject digest:
490a4e8e5972750255ea14315db4633a2b1967b2114559e898f49790ef216724 - Sigstore transparency entry: 757582066
- Sigstore integration time:
-
Permalink:
PGScatalog/pygscatalog@72b9d421a062508a5f2d4392bdce23ffcc8d6c10 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/PGScatalog
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@72b9d421a062508a5f2d4392bdce23ffcc8d6c10 -
Trigger Event:
workflow_dispatch
-
Statement type: