knitr::opts_chunk$set( collapse = TRUE, comment = "#>" ) library(quincunx)
PGS is calculated as a weighted sum of several risk variants from a genome-wide association study in one or more samples with multiple p-value thresholds. The effect sizes are typically estimated as $\beta$ (beta coefficients) or as odds ratios. After the PGS is calculated in one sample, the distribution of individual PGS is assessed in another in an independent sample set.
knitr::include_graphics('../man/figures/pgs-construction-process.png')
knitr::include_graphics('../man/figures/pgs-stages.svg')
In the PGS Catalog, cohorts and samples are annotated according to their
utilisation context, i.e. stage, in the PGS construction process. In quincunx,
the stage is indicated by the stage
variable that can have one of these
values:
gwas
: to annotate samples used to derive variant associations (GWAS)dev
: to annotate samples used in the development or training of PGSsgwas/dev
: as a catch-all term to annotate samples used either in gwas
or dev
stageseval
: to annotate samples used in the PGS evaluation stageYou will encounter the stage annotation in tables of objects returned by quincunx's retrieval functions. Here are a few examples:
scores
objectget_scores('PGS000327')@samples
sample_sets
objectget_sample_sets(pgs_id = 'PGS000327')@samples
performance_metrics
objectget_performance_metrics(pgs_id = 'PGS000327')@samples
stages_tally
table:get_scores('PGS000327')@stages_tally
ancestry_frequencies
table:get_scores('PGS000012')@ancestry_frequencies
multi_ancestry_composition
table:get_scores('PGS000012')@multi_ancestry_composition
cohorts
object:get_cohorts('23andMe')@pgs_ids
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.