Use this skill to align a tiny FASTQ file against a small reference with `minimap2`, sort and index the resulting BAM, and summarize the alignments.
Scanned 9/8/2026
Install to Claude Code
npx -y skills add ma-compbio-lab/SkillFoundry --skill minimap2-read-mapping-starter --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Minimap2 Read Mapping Starter?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/ma-compbio-lab-minimap2-read-mapping-starter)More formats (shields.io, HTML) on the badges page.
# minimap2 Read Mapping Starter
Use this skill to align a tiny FASTQ file against a small reference with `minimap2`, sort and index the resulting BAM, and summarize the alignments.
## What it does
- runs `minimap2 -a -x sr` from the repo-managed genomics prefix
- sorts and indexes the alignment with `samtools`
- reports mapped and unmapped reads, mean MAPQ, and representative alignments
## When to use it
- you need a verified starter for `alignment-and-mapping`
- you want a minimal short-read mapping example before adding quantification or variant calling
- you need a deterministic BAM-producing smoke fixture
## Example
```bash
./slurm/envs/genomics/bin/python skills/genomics/minimap2-read-mapping-starter/scripts/run_minimap2_read_mapping.py \
--reference skills/genomics/minimap2-read-mapping-starter/examples/toy_reference.fa \
--reads skills/genomics/minimap2-read-mapping-starter/examples/toy_reads.fastq \
--bam-out scratch/genomics/minimap2/toy_reads.bam \
--summary-out scratch/genomics/minimap2/toy_reads_summary.json
```
## Verification
- Skill-local tests: `python3 -m unittest discover -s skills/genomics/minimap2-read-mapping-starter/tests -p 'test_*.py'`
- Expected summary: `read_count == 3`, `mapped_count == 2`, `reference_names == ["chrToy"]`
Is this your skill, or is something wrong with this listing? . Author removals are honored within 72 hours.
No comments yet. Be the first to comment!