Science Score: 67.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 1 DOI reference(s) in README -
✓Academic publication links
Links to: medrxiv.org -
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (7.8%) to scientific vocabulary
Repository
Penalized Regression for Inference of Polygenic Risk Scores
Basic Info
- Host: GitHub
- Owner: shz9
- License: mit
- Language: Python
- Default Branch: main
- Size: 72.3 KB
Statistics
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
PenPRS: Penalized Regression for Inference of Polygenic Risk Scores
:hammer: Under Construction :construction:
``` -->-->-->-->->->->->-------<-<-<--<-<--<-<--<--
▗▄▄▖ ▗▄▄▄▖ ▗▖ ▗▖ ▗▄▄▖ ▗▄▄▖ ▗▄▄▖
▐▌ ▐▌ ▐▌ ▐▛▚▖▐▌ ▐▌ ▐▌ ▐▌ ▐▌ ▐▌
▐▛▀▘ ▐▛▀▀▘ ▐▌ ▝▜▌ ▐▛▀▘ ▐▛▀▚▖ ▝▀▚▖
▐▌ ▐▙▄▄▖ ▐▌ ▐▌ ▐▌ ▐▌ ▐▌ ▗▄▄▞▘
Penalized Regression for Polygenic Risk Scores Version: 0.0.1 | Release date: January 2025 Authors: Shadi Zabad & Jack Song McGill University -->-->-->-->->->->->-------<-<-<--<-<--<-<--<-- ```
Installation
To install the package from GitHub, use the following command:
bash
pip install git+https://github.com/shz9/penprs.git
Usage
```python import magenpy as mgp from penprs.model.Lasso import Lasso
Load the data
gdl = mgp.GWADataLoader(mgp.tgpeurdatapath(), sumstatsfiles=mgp.ukbheightsumstatspath(), sumstatsformat="fastgwa")
Compute LD matrix:
ldblockurl = "https://bitbucket.org/nygcresearch/ldetect-data/raw/ac125e47bf7ff3e90be31f278a7b6a61daaba0dc/EUR/fourierls-all.bed" gdl.computeld('block', ldblocksfile=ldblockurl, dtype='int16', computespectralproperties=True, outputdir='temp/blockld/')
Initialize Lasso model:
lasso_model = Lasso(gdl, lam=100)
Perform model fit:
lasso_model.fit()
```
Citation
If you use this package in your research, please cite the following paper:
```bibtex
@article {Song2025.01.28.25321292, author = {Song, Junyi and Zabad, Shadi and Yang, Archer and Li, Yue}, title = {Sparse Polygenic Risk Score Inference with the Spike-and-Slab LASSO}, elocation-id = {2025.01.28.25321292}, year = {2025}, doi = {10.1101/2025.01.28.25321292}, publisher = {Cold Spring Harbor Laboratory Press}, URL = {https://www.medrxiv.org/content/early/2025/01/29/2025.01.28.25321292}, eprint = {https://www.medrxiv.org/content/early/2025/01/29/2025.01.28.25321292.full.pdf}, journal = {medRxiv} }
```
Owner
- Name: Shadi
- Login: shz9
- Kind: user
- Website: https://shz9.github.io/
- Repositories: 20
- Profile: https://github.com/shz9
PhD Student at McGill University
Citation (CITATION.md)
If you use `penprs` in your research, please cite the following paper:
```bibtex
@article {Song2025.01.28.25321292,
author = {Song, Junyi and Zabad, Shadi and Yang, Archer and Li, Yue},
title = {Sparse Polygenic Risk Score Inference with the Spike-and-Slab LASSO},
elocation-id = {2025.01.28.25321292},
year = {2025},
doi = {10.1101/2025.01.28.25321292},
publisher = {Cold Spring Harbor Laboratory Press},
URL = {https://www.medrxiv.org/content/early/2025/01/29/2025.01.28.25321292},
eprint = {https://www.medrxiv.org/content/early/2025/01/29/2025.01.28.25321292.full.pdf},
journal = {medRxiv}
}
```
GitHub Events
Total
- Watch event: 1
- Member event: 1
- Push event: 6
- Pull request event: 4
- Fork event: 2
- Create event: 2
Last Year
- Watch event: 1
- Member event: 1
- Push event: 6
- Pull request event: 4
- Fork event: 2
- Create event: 2
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 0
- Total pull requests: 3
- Average time to close issues: N/A
- Average time to close pull requests: less than a minute
- Total issue authors: 0
- Total pull request authors: 1
- Average comments per issue: 0
- Average comments per pull request: 0.0
- Merged pull requests: 2
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 3
- Average time to close issues: N/A
- Average time to close pull requests: less than a minute
- Issue authors: 0
- Pull request authors: 1
- Average comments per issue: 0
- Average comments per pull request: 0.0
- Merged pull requests: 2
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
- JackSong88 (3)