ApplyPolygenicScore
4.0.2Utilities for the Application of a Polygenic Score to a VCF
Overview
Simple and transparent parsing of genotype/dosage data from an input Variant Call Format (VCF) file, matching of genotype coordinates to the component Single Nucleotide Polymorphisms (SNPs) of an existing polygenic score (PGS), and application of SNP weights to dosages for the calculation of a polygenic score for each individual in accordance with the additive weighted sum of dosages model. Methods are designed in reference to best practices described by Collister, Liu, and Clifton (2022) doi:10.3389/fgene.2022.818574.
Install
Health
- OK2026-03-1214 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- ERROR2026-03-1013 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
Documentation
- Examples that run
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- References docs
- 0%
Downloads
Dependencies
Nothing depends on this yet.
Code & Tests
- Cyclomatic complexity
- 4.5 median / 47 max
- Test cases
- 132 / 1.69 per code line
Test coverage
Line coverage
95%
Expression
94.5%
Tests / Examples
95.3% / 69% ex
Functions
46 19 exported
Complexity
8.4 avg / 47 max
Call network
46 nodes / 53 edges
Call graph
Open call graph →Lowest coverage
46 functions| Function | Cyclo | Coverage |
|---|---|---|
| get.non.risk.multiallelic.site.row | 10 | 69% |
| validate.allele.input | 5 | 85% |
| analyze.pgs.binary.predictiveness exp | 47 | 85% |
| write.apply.polygenic.score.output.to.file | 4 | 87% |
| validate.vcf.input | 11 | 88% |
| create.pgs.density.plot exp | 15 | 95% |
People & History
4 releases. Pick two to compare their code metrics. R releases are shown for context.
Package metadata
- First published
- 2025-03-05
- Total releases
- 4 / 1 yrs
- License
- GPL-2 OSI
- Minimum R
- ≥ 4.2.0
- Download size
- 4.6 MB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet