pc-clocks
Code for the calculation and implementation of the PC Based epigenetic clocks
Science Score: 44.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
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (12.8%) to scientific vocabulary
Last synced: 10 months ago
·
JSON representation
·
Repository
Code for the calculation and implementation of the PC Based epigenetic clocks
Basic Info
- Host: GitHub
- Owner: MorganLevineLab
- Language: R
- Default Branch: main
- Size: 510 KB
Statistics
- Stars: 57
- Watchers: 5
- Forks: 14
- Open Issues: 9
- Releases: 1
Created over 4 years ago
· Last pushed almost 4 years ago
Metadata Files
Readme
Citation
README.rtf
[The following information can also be found under the wiki pages]
Installation:
1. Please clone or download the zip file of this Github Repository.
2. Take note of where the installation occurred. Copy the path to that folder, including the final '/'.
3. Navigate to [https://yale.box.com/s/kq0b0a7lxckxjvaz7x5n4keaug7tewry] and download the files
"Example_PCClock_Data.RData" (Lehne et al. 2015, Technical Replicate Data)
"CalcAllPCClocks.RData"
4. Place both RData files directly inside the Github Repository you cloned/ downloaded.
5. [Optional] If you wish to calculate ALL the PCs we used to train the PC clocks, not just the ones that were selected by the models, navigate to [https://yale.box.com/s/9eudzra5s8b0ckkwh66xi6iwuva4qct1] and download all 6 RData files--or the ones for the clocks you wish to utilize.
If you chose to calculate all PCs, then ensure that you move all downloaded files from this link to the downloaded repository under the folder path "/PC-Clocks/Extras/AllPC_data/"
Please note that predicting all PCs in new data will be memory and computationally intensive, so the code may run slowly.
Consider using a high performance computing cluster. A minimum of 16 GB+ of RAM is essential on a personal computer.
Essential Files:
template_get_PCClocks_script.R
This is the template with instructions on how to run the code in this repository to get the PC Clock scores.
run_calcPCClocks.R
This is the R function that will be used in the template to calculate the PC Clocks on your data.
run_calcPCClocks_Accel.R
This is the R function that is responsible for quickly calculating age acceleration for the various clocks in your sample.
Most analyses will take advantage of these calculations rather than the raw clock scores.
To Run the Analysis:
1. Load in your phenotype (clinical and demographic) dataframe and methylation data to your R workspace.
2. Open the template_get_PCClocks_script.R and follow the instructions on that script.
*PLEASE NOTE* that if you have multiple tissues and have missing CpGs (and will thus need to run imputation) that you should separate the tissues into separate dataframes and run each tissue through the functions separately so that imputation is performed separately in each tissue.
Additional Files for analyses:
TrainPCClocks.R
This is an example script showing you how to perform analyses to train your own principal component-based epigenetic clock or biomarker.
Extras > CalcPCClocks_allPCs.R
This script will enable you how to calculate all the PCs we had available for training the clock, including PCs that are not used in our PC clock models. Note that calculation time is substantially longer.
Extras > CalcPCClocks_fullLength.R
This script shows the stepwise original implementation of our PC clocks calculations. Use this if you are interested in manually running the individual steps of what is implemented in our single-line run_calcPCClocks.R function.
Owner
- Login: MorganLevineLab
- Kind: user
- Repositories: 2
- Profile: https://github.com/MorganLevineLab
Citation (CITATION.cff)
cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "Albert"
given-names: "Higgins-Chen"
orcid: "https://orcid.org/0000-0003-2904-2741"
- family-names: "Kyra"
given-names: "Thrush"
orcid: "https://orcid.org/0000-0002-3991-9597"
- family-names: "Morgan"
given-names: "Levine"
orcid: "https://orcid.org/0000-0000-0000-0000"
title: "PC Epigenetic Clocks"
version: 1.0.0
doi: [get-zenodo-doi-when-public]
date-released: 2022-01-05
url: "https://github.com/github/MorganLevineLab/PC-Clocks"
preferred-citation:
type: article
authors:
- family-names: "Albert T."
given-names: "Higgins-Chen"
orcid: "https://orcid.org/0000-0003-2904-2741"
- family-names: "Kyra L."
given-names: "Thrush"
orcid: "https://orcid.org/0000-0002-3991-9597"
- family-names: "Yunzhang"
given-names: "Wang"
orcid: "https://orcid.org/0000-0000-0000-0000"
- family-names: "Christopher J."
given-names: "Minteer"
orcid: "https://orcid.org/0000-0000-0000-0000"
- family-names: "Pei-Lun"
given-names: "Kuo"
orcid: "https://orcid.org/0000-0000-0000-0000"
- family-names: "Meng"
given-names: "Wang"
orcid: "https://orcid.org/0000-0000-0000-0000"
- family-names: "Peter"
given-names: "Niimi"
orcid: "https://orcid.org/0000-0000-0000-0000"
- family-names: "Gabriel"
given-names: "Sturm"
orcid: "https://orcid.org/0000-0000-0000-0000"
- family-names: "Jue"
given-names: "Lin"
orcid: "https://orcid.org/0000-0000-0000-0000"
- family-names: "Ann Zenobia"
given-names: "Moore"
orcid: "https://orcid.org/0000-0000-0000-0000"
- family-names: "Stefania"
given-names: "Bandinelli"
orcid: "https://orcid.org/0000-0000-0000-0000"
- family-names: "Christiaan H."
given-names: "Vinkers"
orcid: "https://orcid.org/0000-0000-0000-0000"
- family-names: "Eric"
given-names: "Vermetten"
orcid: "https://orcid.org/0000-0000-0000-0000"
- family-names: "Bart P.F."
given-names: "Rutten"
orcid: "https://orcid.org/0000-0000-0000-0000"
- family-names: "Elbert"
given-names: "Geuze"
orcid: "https://orcid.org/0000-0000-0000-0000"
- family-names: "Cynthia"
given-names: "Okhuijsen-Pfeifer"
orcid: "https://orcid.org/0000-0000-0000-0000"
- family-names: "Marte Z."
given-names: "van der Horst"
orcid: "https://orcid.org/0000-0000-0000-0000"
- family-names: "Stefanie"
given-names: "Schreiter"
orcid: "https://orcid.org/0000-0000-0000-0000"
- family-names: "Stefan"
given-names: "Gutwinski"
orcid: "https://orcid.org/0000-0000-0000-0000"
- family-names: "Jurjen J."
given-names: "Luykx"
orcid: "https://orcid.org/0000-0000-0000-0000"
- family-names: "Martin"
given-names: "Picard"
orcid: "https://orcid.org/0000-0000-0000-0000"
- family-names: "Luigi"
given-names: "Ferrucci"
orcid: "https://orcid.org/0000-0000-0000-0000"
- family-names: "Eileen M."
given-names: "Crimmins"
orcid: "https://orcid.org/0000-0000-0000-0000"
- family-names: "Marco P."
given-names: "Boks"
orcid: "https://orcid.org/0000-0000-0000-0000"
- family-names: "Sara"
given-names: "Hägg"
orcid: "https://orcid.org/0000-0000-0000-0000"
- family-names: "Tina T."
given-names: "Hu-Seliger"
orcid: "https://orcid.org/0000-0000-0000-0000"
- family-names: "Morgan E."
given-names: "Levine"
orcid: "https://orcid.org/0000-0000-0000-0000"
doi: "[DOI here]"
journal: "[Publication Journal]"
month:
start: # First page number
end: # Last page number
title: "A computational solution for bolstering reliability of epigenetic clocks: Implications for clinical trials and longitudinal tracking"
issue:
volume:
year: 2022
GitHub Events
Total
- Watch event: 7
- Issue comment event: 1
- Fork event: 3
Last Year
- Watch event: 7
- Issue comment event: 1
- Fork event: 3