Skip to content
Back to skills

Bulkrna Read Alignment

ASecurity

Load when summarising STAR / HISAT2 / Salmon alignment-rate logs in bulk RNA-seq. Skip when

  • 8 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 6, 2026
datapythonrustgobash

Works with

  • cli

Security analysis

A100/100

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

Scanned September 6, 2026

npx -y skills add lilinji/GeneTind-Life-Skills --skill bulkrna-read-alignment --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Bulkrna Read Alignment?

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

Security grade badge for Bulkrna Read Alignment
[![Security: A β€” Skills Directory](https://www.skillsdirectory.com/api/skills/lilinji-bulkrna-read-alignment/badge)](https://www.skillsdirectory.com/skills/lilinji-bulkrna-read-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
---
# AUTO-GENERATED header from skill.yaml β€” do not edit by hand.
# Edit skill.yaml, then run: python scripts/generate_skill_md.py <skill_dir>
name: bulkrna-read-alignment
description: Load when summarising STAR / HISAT2 / Salmon alignment-rate logs in bulk RNA-seq. Skip when
  data is raw FASTQ (use bulkrna-read-qc); already counted (use bulkrna-qc); genome-DNA alignment (use
  genomics-alignment).
version: 0.3.0
author: OmicsClaw
license: MIT
emoji: 🧬
tags:
- bulkrna
- alignment
- STAR
- HISAT2
- Salmon
- mapping-rate
- strandedness
requires:
- matplotlib
- numpy
- pandas
---

# bulkrna-read-alignment

## When to use

Run after the aligner / quantifier finishes, on the log file produced by
STAR (`Log.final.out`), HISAT2 (`.log`), or Salmon (`meta_info.json`).
Yields a one-page mapping-rate summary, strandedness inference, and a
gene-body coverage profile β€” the QC bridge between raw FASTQ and the
count matrix.

## Inputs & Outputs

<!-- AUTO-GENERATED from skill.yaml (interface) β€” do not edit by hand. Regenerate: python scripts/generate_skill_md.py <skill_dir> -->

**Inputs**

- File types: `.out`, `.log`, `.json`

**Outputs**

- `tables/alignment_stats.csv`
- `figures/alignment_composition.png`
- `figures/gene_body_coverage.png`
- `figures/mapping_summary.png`
- `report.md`
- `result.json`

## Flow

1. Auto-detect aligner from filename (`bulkrna_read_alignment.py:305-311`): `log.final.out` β†’ STAR; `meta_info` β†’ Salmon; otherwise β†’ HISAT2.
2. Parse the log into a numeric stats dict.
3. Run quality assessment heuristics (high/medium/low mapping-rate buckets).
4. Render figures and write `report.md` + `tables/alignment_stats.csv`.

## Gotchas

- **Aligner detection is filename-based, not content-based.**  `bulkrna_read_alignment.py:305-311` dispatches by `input_path.name.lower()` β€” anything that is neither `log.final.out` nor `meta_info` (case-insensitive substring) is silently parsed as a HISAT2 log.  A renamed STAR log will produce nonsense.  Pass `--method star` explicitly if your STAR file isn't named conventionally.
- **The skill consumes the LOG, not the BAM.**  Feeding a `.bam` or `.sam` file as `--input` will not raise β€” the parser just finds zero matchable lines and reports an empty stats dict.  Sanity-check `result.json["summary"]["total_reads"]` is non-zero before trusting any downstream summary.
- **Gene body coverage is synthetic in `--demo` mode** (`bulkrna_read_alignment.py:142-150`).  The 5'β†’3' bias profile in demo runs is a fixed reproducible curve, not derived from real input β€” useful for layout previews but not for assessing real RNA degradation.

## Key CLI

```bash
python omicsclaw.py run bulkrna-read-alignment --demo
python omicsclaw.py run bulkrna-read-alignment --input Log.final.out --output results/
```

## See also

- `references/parameters.md` β€” every CLI flag and tuning hint
- `references/methodology.md` β€” STAR / HISAT2 / Salmon parsers, strandedness inference
- `references/output_contract.md` β€” exact output directory layout
- Adjacent skills: `bulkrna-read-qc` (upstream FASTQ QC), `bulkrna-qc` (downstream count-matrix QC), `genomics-alignment` (DNA-alignment sibling: BAM/SAM, not log files)

Files in this skill

  • SKILL.md3.1 KB
  • bulkrna_read_alignment.py11.2 KB
  • references/methodology.md939 B
  • references/output_contract.md1.1 KB
  • references/parameters.md263 B
  • skill.yaml1.1 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.

Comments

Loading comments…