Skip to content
Back to skills

Minimap2 Read Mapping Starter

ASecurity

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.

  • 38 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 8, 2026
ai-agentspythonbash

Security analysis

A100/100

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

Scanned September 8, 2026

npx -y skills add ma-compbio-lab/SkillFoundry --skill minimap2-read-mapping-starter --agent claude-code

Installs 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 with every re-scan.

Security grade badge for Minimap2 Read Mapping Starter
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ma-compbio-lab-minimap2-read-mapping-starter/badge)](https://www.skillsdirectory.com/skills/ma-compbio-lab-minimap2-read-mapping-starter)

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
# 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"]`

Files in this skill

  • SKILL.md1.3 KB
  • assets/toy_reads.bam535 B
  • assets/toy_reads.bam.bai96 B
  • assets/toy_reads_mapping_summary.json1006 B
  • examples/toy_reads.fastq324 B
  • examples/toy_reference.fa104 B
  • metadata.yaml1.4 KB
  • refs.md276 B
  • scripts/run_minimap2_read_mapping.py4.9 KB
  • tests/test_run_minimap2_read_mapping.py2.5 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 ai-agents →

Comments

Loading comments…

Newsletter

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