Skip to content
Back to skills

Bulkrna Alignment

ASecurity

--> --- 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 --- Library size distribution, gene detection rates, and sample correlation analysis for bulk RNA-seq count matrices.

  • 36 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 7, 2026
researchpythonshellbashexpress

Works with

  • cli

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned September 7, 2026

npx -y skills add mdbabumiamssm/LLMs-Universal-Life-Science-and-Clinical-Skills- --skill bulkrna-alignment --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Bulkrna Alignment?

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

Security grade badge for Bulkrna Alignment
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mdbabumiamssm-bulkrna-alignment/badge)](https://www.skillsdirectory.com/skills/mdbabumiamssm-bulkrna-alignment)

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
<!--
# 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 -->

Files in this skill

  • SKILL.md3.5 KB
  • bulkrna_alignment.py11.4 KB
  • tests/test_bulkrna_alignment.py1.8 KB

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.

View all in research →

Comments

Loading comments…

Newsletter

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