File size: 1,532 Bytes
d0d270b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 | ---
title: Classical Methods (Transcriptome-centric, 8D)
emoji: 📊
colorFrom: purple
colorTo: blue
sdk: python
tags:
- transcriptomics
- dimensionality-reduction
- pca
license: mit
---
# Classical Dimensionality Reduction (Transcriptome-centric, 8D)
Pre-trained PCA models for transcriptomics data compression, part of the TRACERx Datathon 2025 project.
## Model Details
- **Methods**: PCA
- **Compression Mode**: Transcriptome-centric
- **Output Dimensions**: 8
- **Training Data**: TRACERx open dataset (VST-normalized counts)
## Contents
The model file contains:
- **PCA**: Principal Component Analysis model
- **UMAP**: Uniform Manifold Approximation and Projection model (2-4D only)
- **Scaler**: StandardScaler fitted on TRACERx data
- **Feature Order**: Gene/sample order for alignment
## Usage
These models are designed to be used with the TRACERx Datathon 2025 analysis pipeline.
They will be automatically downloaded and cached when needed.
```python
import joblib
# Load the model bundle
model_data = joblib.load("model.joblib")
# Access components
pca = model_data['pca']
scaler = model_data['scaler']
gene_order = model_data.get('gene_order') # For sample-centric
# Transform new data
scaled_data = scaler.transform(aligned_data)
embeddings = pca.transform(scaled_data)
```
## Training Details
- **Input Features**: 1,051 samples
- **Training Samples**: 20,136 genes
- **Preprocessing**: StandardScaler normalization
## Files
- `model.joblib`: Model bundle containing PCA, scaler, and feature order
|