Skip to content
Back to skills

Bio Applied Mixomics

ASecurity

mixOmics PLS-DA and DIABLO for supervised multi-omics integration and feature selection. Use when classifying samples or selecting biomarkers from multi-omics data.

  • 4 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added May 27, 2026
data-aipythondocumentation

Security analysis

A100/100

Scanned May 27, 2026

npx -y skills add Pavel-Kravchenko/Bioinformatics --skill bio-applied-mixomics --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Bio Applied Mixomics?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Bio Applied Mixomics
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/pavel-kravchenko-bio-applied-mixomics/badge)](https://www.skillsdirectory.com/skills/pavel-kravchenko-bio-applied-mixomics)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: bio-applied-mixomics
description: "mixOmics PLS-DA and DIABLO for supervised multi-omics integration and feature selection. Use when classifying samples or selecting biomarkers from multi-omics data."
tool_type: python
primary_tool: Matplotlib
---

# mixOmics: Supervised Multi-Omics Integration

- [mixOmics documentation](http://mixomics.org/)
- [DIABLO tutorial](http://mixomics.org/mixdiablo/)

## Method Family

| Method | Data | Task |
|---|---|---|
| **PLS-DA** | Single omics | Supervised classification |
| **sPLS-DA** | Single omics | Classification + feature selection |
| **MINT** | Multi-study | Cross-study integration |
| **DIABLO** | Multi-omics | Supervised multi-block classification |

## PLS-DA

PLS finds latent components maximizing covariance between X (features) and Y (outcome). Ideal for p >> n.

1. One-hot encode class labels as Y
2. Find components maximizing cov(X, Y)
3. Classify by soft-max on predicted Y scores

Key parameters: 2-5 components (CV to minimize BER). Requires standardized features.

```python
from sklearn.cross_decomposition import PLSRegression

class PLSDA:
    def __init__(self, n_components=2):
        self.pls = PLSRegression(n_components=n_components, scale=True)
    def fit(self, X, Y_onehot):
        self.pls.fit(X, Y_onehot)
    def transform(self, X):
        return self.pls.transform(X)[0]
    def predict_class(self, X):
        return np.argmax(self.pls.predict(X), axis=1)
```

## sPLS-DA: Sparse Feature Selection

Adds L1-like penalty via `keepX` parameter (features retained per component).

- Tune keepX by CV: minimize BER
- Bootstrap stability: selection frequency >50% = reliable, >80% = high confidence biomarker

```r
# R mixOmics
tune.splsda <- tune.splsda(X, Y, ncomp=3, validation='Mfold',
                            folds=5, test.keepX=c(5,10,20,50,100), nrepeat=50)
```

## Pitfalls

- **Overfitting**: PLS-DA overfits when p >> n; use sPLS-DA with CV-tuned keepX
- **Batch effects**: Always check for batch confounding before interpreting biological signal
- **Balanced Error Rate**: Use BER (not accuracy) for imbalanced classes

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.