You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This R script performs **single-sample Gene Set Enrichment Analysis (ssGSEA)** using the **MSigDB C7 immunologic signature gene sets**. It takes a gene expression matrix as input and outputs enrichment scores for each sample across all C7 pathways.
26
+
27
+
---
28
+
29
+
## 📦 Required R Packages
30
+
31
+
Make sure the following packages are installed:
32
+
33
+
34
+
> ⚠️ **Note**: This script only supports **human (Homo sapiens)** data due to the use of `org.Hs.eg.db`.
35
+
36
+
---
37
+
38
+
## 📁 Input Format
39
+
40
+
### ✅ Requirements
41
+
-**File type**: CSV (comma-separated)
42
+
-**Rows**: Genes (using official **HGNC gene symbols**, e.g., `TP53`, `CD3D`)
43
+
-**Columns**: Samples
44
+
-**Values**: Expression values
45
+
- Use **raw counts** (e.g., from RNA-seq) → script uses `kcdf="Poisson"`
46
+
- For **log-transformed data** (e.g., log2(TPM+1)), you must modify the script to use `kcdf="Gaussian"`
0 commit comments