Skip to content

zhuxxyy12/lupus_clustering

 
 

Repository files navigation

Custom Code for Lupus Clinical Clustering Project

File 1: clustering_clues.R Contains code to perform unsupervised clustering of CLUES study data (ACR phenotypes) and compare clinical variables between clusters Lines 116- 148: Train random forest model to predict cluster label from ACR variables

File 2: differential_methylation_analysis.R Contains code to perform differential methylation analysis for CLUES data with covariates, make figures, and perform race-enrichment analysis

Lines 92 – 148: Annotate cluster-associated CpGs using EPIC annotation file Lines 151- 165: Create volcano plots for pairwise cluster comparisons Lines 167 – 199: Pathway analysis of cluster-associated CpGs mapped to genes using EPIC annotation file Lines 203 – 232: Generate heatmap of cluster-associated CpGs Lines 235 – 263: QQ plot Lines 265 – 308: Calculate race-association enrichment statistic by permuting self-reported race

File 3: clustering_validation_data.R Contains code to apply random forest model to ACR phenotypic data from validation cohort and find demographic and clinical differences between clusters

File 4: methylation_mediation_analysis.R Contains code to perform methylation mediation analysis using a causal inference test (CIT R package)

File 5: helper_diff_meth.R Internal helper functions (do not modify)

File 6: load_data_meqtl.R Internal helper function to load all data required for meQTL and mediation analysis (do not modify)

About

Lupus Clustering

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • R 100.0%