Master in Bioinformatics – R statistics project Group 8 Date: January 2026
This repository contains the complete multivariate statistical analysis performed for Activity 3 of the Master in Bioinformatics. The objective of this work is to explore patterns of gene expression associated with obesity-related phenotypes using unsupervised learning techniques.
The analysis integrates:
- Data preprocessing and quality control
- Normalization assessment
- Principal Component Analysis (PCA)
- Clustering of genes and individuals
- Visualization of gene contributions
- Biological interpretation in relation to BMI (IMC)
All analyses were performed in R, following reproducible and transparent data-science practices.
The dataset contains expression values of genes previously associated with:
- Energy balance
- Appetite regulation
- Hypothalamic signaling
- Obesity risk (e.g. LEP, LEPR, MC4R, POMC, FTO, ADCY3, PCSK1)
In addition, anthropometric variables such as BMI (IMC) were used to explore how molecular patterns relate to phenotypic stratification.
.
├── data/
│ └── data_simpson.csv
│
├── scripts/
│ └── analysis_activity3.R
│
├── results/
│ ├── PCA_plots/
│ ├── clustering/
│ ├── heatmaps/
│ └── figures/
│
├── report/
│ ├── actv3_g8.html
│ └── actv3_g8.docx
│
└── README.md
- Selection of gene-expression variables
- Removal of missing values (NA)
- Verification of zero-variance genes
✔ No missing values or zero-variance genes were detected
A Shapiro–Wilk test was applied to each gene:
- Null hypothesis: data follow a normal distribution
- Result: all genes showed non-normal distributions (p < 0.05)
📌 This justified the use of:
- Standardization
- Multivariate and unsupervised methods
PCA was performed using scaled and centered gene-expression values.
| Component | Variance (%) |
|---|---|
| PC1 | 12.5% |
| PC2 | 8.6% |
| PC3 | 6.5% |
Together, the first components capture the dominant biological variability.
- Correlation circle used to visualize gene loadings
- Genes with longer vectors contribute more strongly
- Direction indicates correlation or opposition between genes
Notable contributors:
- PC1: POMC, ADCY3, PCSK1, LEPR
- PC2: NTRK2, CADM2, TMEM18
This reveals distinct biological axes related to appetite signaling and neuronal regulation.
Genes were clustered based on PCA coordinates:
- Cluster 1: Neuronal and synaptic regulation genes
- Cluster 2: Appetite and energy balance regulators
- Cluster 3: Hormonal and metabolic signaling genes
This grouping highlights functional modularity within obesity-related pathways.
Clustering of individuals revealed:
- Two main dense groups near the PCA origin
- One clearly separated cluster with extreme PC1 values
This suggests the presence of molecular sub-phenotypes within the cohort.
Barplots of variable contribution identified genes driving each axis:
- PC1: dominated by metabolic and hormonal genes
- PC2: enriched in neuronal development and signaling genes
Red dashed lines indicate the expected average contribution.
Genes above this threshold are biologically informative.
- Scaled expression values
- Visual comparison across individuals
- Clear heterogeneity across samples
The heatmap supports PCA and clustering results, confirming structured variation rather than random noise.
Individuals were categorized as:
- Normal weight
- Overweight
- Obesity
When projected onto PCA space:
- Normal and overweight individuals largely overlap
- Obese individuals display greater dispersion
📌 This indicates:
Obesity is associated with increased molecular heterogeneity rather than a single transcriptional profile.
- Gene-expression profiles show structured multivariate patterns
- PCA successfully reduces dimensionality while preserving biological meaning
- Obesity-related genes cluster into functional modules
- Individuals with obesity show greater transcriptomic variability
- Molecular phenotypes cannot be explained by BMI alone
- R
- tidyverse
- factoextra
- pheatmap
- gtsummary
- gt
- broom
actv3_g8.html– full reproducible reportactv3_g8.docx– formatted academic submission- All figures generated directly from code
This repository is intended for academic and educational use only.
✨ This project demonstrates the application of unsupervised learning to biological systems, highlighting how multivariate statistics can reveal hidden structure in complex genomic data.