Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Bulkrna Alignment?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/mdbabumiamssm-bulkrna-alignment)
<!--
# COPYRIGHT NOTICE
# This file is part of the "Universal Biomedical Skills" project.
# Copyright (c) 2026 MD BABU MIA, PhD <md.babu.mia@mssm.edu>
# All Rights Reserved.
#
# This code is proprietary and confidential.
# Unauthorized copying of this file, via any medium is strictly prohibited.
#
# Provenance: Authenticated by MD BABU MIA
-->
---
name: bio-bulkrna-alignment
description: "Bulk RNA-seq count matrix QC \u2014 library size, gene detection rates,\
\ and sample correlation."
tool_type: mixed
primary_tool: bulkrna
measurable_outcome: Execute skill workflow successfully with valid output within 15
minutes.
allowed-tools:
- read_file
- run_shell_command
---
# Bulk RNA-seq Count Matrix QC
Library size distribution, gene detection rates, and sample correlation analysis for bulk RNA-seq count matrices.
## CLI Reference
```bash
python omicsclaw.py run bulkrna-alignment --demo
python omicsclaw.py run bulkrna-alignment --input <counts.csv> --output <dir>
```
## Why This Exists
- **Without it**: Bulk RNA-seq count matrices are fed directly into differential expression without checking for outlier samples, low-complexity libraries, or batch-driven correlation structure.
- **With it**: Systematic QC flags problematic samples before downstream analysis, preventing false positives from library size imbalance or failed sequencing lanes.
- **Why OmicsClaw**: Provides a standardised, local-first QC report with reproducible figures and machine-readable JSON output that chains into downstream skills.
## Workflow
1. **Load**: Parse the count matrix CSV (genes as rows, samples as columns, first column is gene identifiers).
2. **Library Size**: Compute total counts per sample, mean, median, and coefficient of variation across samples.
3. **Gene Detection**: For each gene, count how many samples detect it (count > 0). Identify globally undetected genes.
4. **Per-Sample Stats**: Calculate detected gene count and detection percentage for each sample.
5. **Sample Correlation**: Compute Pearson correlation matrix across all sample pairs and flag outlier samples with low mean correlation.
## Example Queries
- "Run QC on my bulk RNA-seq count matrix"
- "Check library sizes and gene detection rates"
- "Are there outlier samples in my RNA-seq experiment?"
- "Show sample correlation heatmap for my count data"
## Output Structure
```
output_directory/
├── report.md
├── result.json
├── figures/
│ ├── library_sizes.png
│ ├── gene_detection.png
│ └── sample_correlation.png
├── tables/
│ └── sample_stats.csv
└── reproducibility/
└── commands.sh
```
## Safety
- **Local-first**: All computation runs locally; no data leaves the machine.
- **Disclaimer**: Reports include the standard OmicsClaw research-use disclaimer.
- **Audit trail**: Parameters, input checksums, and commands are logged for reproducibility.
## Integration with Orchestrator
**Trigger conditions**:
- Automatically invoked when the user mentions bulk RNA-seq QC, library size, gene detection, or count matrix quality.
**Chaining partners**:
- `bulkrna-de` -- Downstream differential expression analysis
- `bulkrna-enrichment` -- Downstream pathway enrichment on DE results
## Citations
- [RNA-seq QC best practices (Conesa et al. 2016)](https://doi.org/10.1186/s13059-016-0881-8)
- [A survey of best practices for RNA-seq data analysis (Genome Biology)](https://doi.org/10.1186/s13059-016-0881-8)
<!-- AUTHOR_SIGNATURE: 9a7f3c2e-MD-BABU-MIA-2026-MSSM-SECURE -->