Skip to content

Releases: PGScatalog/pgsc_calc

pgsc_calc v1.3.1

24 Jan 11:58
Compare
Choose a tag to compare

This patch fixes a bug that breaks the workflow if all variants in one or more PGS scoring files match perfectly with the target genomes. Thanks to @lemieuxl for reporting the problem.

pgsc_calc v1.3.0

21 Nov 17:17
94d054e
Compare
Choose a tag to compare

This release is focused on improving scalability.

Features

  • Variant matching is made more efficient using a split - apply - combine approach when the data is split across chromosomes. This supports parallel PGS calculation for the largest traits in the PGS Catalog (e.g. cancer, 418 PGS [avg 261,000 variants/score]) on big datasets such as UK Biobank.
  • Better support for running in offline environments:
    • Internet access is only required to download scores by ID. Scores can be pre-downloaded using the utils package (https://pypi.org/project/pgscatalog-utils/)
    • Scoring file metadata is read from headers and displayed in the report (removed API calls during report generation)
  • Implemented flag (-–efo_direct) to return only PGS tagged with exact EFO term (e.g. no PGS for child/descendant terms in the ontology)

pgsc_calc v1.2.0

19 Oct 09:11
7e11510
Compare
Choose a tag to compare

This release is focused on improving memory and storage usage.

Features

  • Allow genotype dosages to be imported from VCF to be specified in vcf_genotype_field of samplesheet (default: GT / hard calls)
  • Makes use of durable caching when relabelling and recoding target genomes (--genotypes_cache)
  • Improvements to use less storage space:
    • All intermediate files are now compressed by default
    • Add parameter to support zstd compressed input files
  • Improved memory usage when matching variants

(updated tagged release to fix docs)

pgsc_calc v1.1.0

16 Sep 13:50
4952d21
Compare
Choose a tag to compare

The first public release of the pgsc_calc pipeline. This release adds compatibility
for every score published in the PGS Catalog. Each scoring file in the PGS Catalog
has been processed to provide consistent genomic coordinates in builds GRCh37 and GRCh38.
The pipeline has been updated to take advantage of the harmonised scoring files (see
PGS Catalog downloads for additional details).

Features

  • Many of the underlying software tools are now implemented within a pgscatalog_utils
    package (v0.1.2, https://github.com/PGScatalog/pgscatalog_utils and
    https://pypi.org/project/pgscatalog-utils/). The packaging allows for independent
    testing and development of tools for downloading and working with the scoring files.

  • The output report has been improved to have more detailed metadata describing
    the scoring files and how well the variants match the target sampleset(s).

  • Improvements to variant matching:

    • More precise control of variant matching parameters is now possible, like
      ignoring strand flips
    • match_variants should now use less RAM by default:
      • A laptop with 16GB of RAM should be able to comfortably calculate scores on
        the 1000 genomes dataset
      • Fast matching mode (--fast_match) is available if ~32GB of RAM is
        available and you'd like to calculate scores for larger datasets
  • Groups of scores from the PGS Catalog can be calculated by specifying a specific
    --trait (EFO ID) or --publication (PGP ID), in addition to using individual
    scoring files --pgs_id (PGS ID).

  • Score validation has been integrated with the test suite

  • Support for M1 Macs with --platform parameter (docker executor only)

Bug fixes

  • Implemented a more robust prioritisation procedure if a variant has multiple
    candidate matches or duplicated IDs

  • Fixed processing multiple samplesets in parallel (e.g. 1000 Genomes + UK
    Biobank)

  • When combining multiple scoring files, all variants are now kept to reflect the
    correct denominator for % matching statistics.

  • When trying to correct for strand flips the matched effect allele wasn't being
    correctly complemented

v1.0.0

26 May 13:39
Compare
Choose a tag to compare
v1.0.0 Pre-release
Pre-release

This release reliably calculates scores that contain chromosomal positions (scores with only rsID information will fail). Significant effort has been made to validate scores on different reference datasets. In the next release we'll add score validation to our test suite to make sure calculated scores are consistent between releases.

Changelog

  • Add support for PLINK2 format (samplesheet structure changed)
  • Add support for allosomes (e.g. X, Y)
  • Improve PGS Catalog compatibility (e.g. missing other allele)
  • Add automatic liftover of scoring files to match target genome build
  • Performance improvements to support UK BioBank scale data (500,000 genomes)
  • Support calculation of multiple scores in parallel
  • Significantly improved test coverage (> 80%)
  • Lots of other small changes to improve correctness and handling edge cases

In Development

This is marked as a pre-release because it will will fail for PGS Catalog scores that only have an rsID. Mapped positions will eventually be provided for existing scores via the PGS Catalog API and these will be integrated into the calculator pipeline.

0.1.3dev

04 Feb 10:16
6f3f042
Compare
Choose a tag to compare
0.1.3dev Pre-release
Pre-release

[0.1.3dev] - 2022-02-04

pgsc_calc should run on GrCh37 scoring files from the PGS Catalog & GrCh37 target genomic data but 🚨 don't trust the output 🚨

This release is the final implementation of the MVP.

Changelog

  • Better support for calling pipeline via an API
  • Documentation(!)
  • Better schemas for validation

0.1.2dev

17 Jan 17:35
581fc48
Compare
Choose a tag to compare
0.1.2dev Pre-release
Pre-release

[0.1.2dev] - 2022-01-17

pgsc_calc should run on GrCh37 scoring files from the PGS Catalog & GrCh37 target genomic data but 🚨 don't trust the output 🚨

Enhancements & fixes

  • #2: Set up github action CI and linting
  • A lot of work to integrate with IGS4EU (e.g. JSON input)

0.1.1dev

16 Dec 13:01
581fc48
Compare
Choose a tag to compare
0.1.1dev Pre-release
Pre-release

Small fix to reflect the new scoring file format used by the PGS Catalog (version 2.0)

pgsc_calc should run on GrCh37 scoring files from the PGS Catalog & GrCh37 target genomic data but 🚨 don't trust the output 🚨