Alignment and mapping

From zongtingwei/Bioclaw_Skills_Hub · View interactive version

Alignment and mapping is an AI agent skill from the GitHub repository zongtingwei/Bioclaw_Skills_Hub. Workflow for read alignment, sorting, indexing, mapping statistics, and downstream-ready alignment artifacts.

How to use this skill

Skill file

Alignment And Mapping

Version Compatibility

Reference examples assume recent stable releases of the preferred tools, especially samtools and the other tools listed below.

Before using code or command patterns, verify installed versions match the environment:

Overview

Workflow for read alignment, sorting, indexing, mapping statistics, and downstream-ready alignment artifacts.

When To Use This Skill

Quick Route

Progressive Disclosure

Default Rules

Expected Inputs

Expected Outputs

Preferred Tools

Starter Pattern

bwa mem ref.fa sample_R1.fastq.gz sample_R2.fastq.gz | samtools sort -o sample.bam
samtools index sample.bam
samtools flagstat sample.bam > sample.flagstat.txt

Workflow

1. Choose the mapper

Match the aligner to DNA, RNA, read length, and splice-awareness needs.

2. Run alignment reproducibly

Capture all parameters that influence multi-mapping, splicing, and scoring.

3. Post-process alignments

Sort, index, mark or handle duplicates as appropriate, and compute mapping summaries.

4. Check mapping quality

Review alignment rate, insert sizes, and reference compatibility before downstream analysis.

5. Export standard artifacts

Save BAM or CRAM plus indexes and mapping reports.

Output Artifacts

Quality Review

Anti-Patterns

Related Skills

Optional Supplements

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.