SkillsReviewed · jaechang-hits

BWA-MEM2 DNA Aligner skill

The BWA-MEM2 DNA Aligner skill guides AI assistants helping researchers and developers align DNA reads, but its example pipelines contain inconsistencies that need review. It covers reference indexing, paired-end alignment, sample metadata, BAM preparation, duplicate marking, quality statistics and a GATK variant-calling example.

Researched 16 Nov 2026

In short.

The BWA-MEM2 DNA Aligner skill is an instruction guide for AI assistants supporting genomics researchers and developers, but its example pipelines need technical review before use. It connects short-read DNA alignment with sample identification, alignment statistics and downstream variant calling. Its GATK/Picard flag advice differs from its commands, and its samtools duplicate-marking recipes leave input ordering unresolved. Performance, accuracy and downstream compatibility are not demonstrated by supplied results. The file also declares MIT while the repository notice names CC BY 4.0.

Researched and written by an AI model and checked by a second AI model. How it works

The selected scope is skills/genomics-bioinformatics/alignment/bwa-mem2-dna-aligner at commit 65d6ceb875e20b751ffb3a6d8ee19516558789e1; its supplied contents consist of SKILL.md. The accompanying root LICENSE provides related repository notices. Other skills, upstream program source and binaries, cited publications, reference genomes and sequencing datasets are outside this scope. Alignment, duplicate marking, metrics collection and variant calling were not executed, and their runtime behavior remains unassessed.

The overview

Identity

This resource is the bwa-mem2-dna-aligner SKILL.md in jaechang-hits/SciAgent-Skills, under skills/genomics-bioinformatics/alignment/bwa-mem2-dna-aligner. It provides assistant instructions and command examples that call separately installed scientific software. The original folder is [https://github.com/jaechang-hits/SciAgent-Skills/tree/main/skills/genomics-bioinformatics/alignment/bwa-mem2-dna-aligner].

The underlying alignment program is BWA-MEM2. The skill also coordinates samtools and optional Picard, GATK and Python steps. No particular assistant application, model or skill-loading interface is specified.

Assessment

The guide offers a useful starting structure for DNA alignment, especially its attention to reference choice and sample identity. It needs review before being adopted as an automated pipeline: its planning table recommends -M -Y when GATK or Picard follows, while its main alignment commands omit both. Requirements for particular downstream versions remain unassessed.

The document claims twice the speed of BWA-MEM with identical results, but supplies no benchmark measurements, hardware description or output comparison. Those claims should not be treated as demonstrated performance for a reader's workload.

Users

The intended workflows concern researchers and bioinformatics developers handling Illumina DNA reads, described as approximately 50–250 bases long. Examples cover whole-genome sequencing, whole-exome sequencing, ChIP-seq and ATAC-seq.

Beginners receive an ordered workflow and explanations of common parameters. Effective use still requires choosing the correct genome assembly, identifying samples and libraries, managing paired FASTQ files and interpreting alignment statistics. Experienced users can adapt the commands, but should review the downstream recipes and tool versions.

Capabilities

The skill documents reference downloading and indexing, paired-end alignment, read-group headers, coordinate sorting, BAM indexing, duplicate marking and alignment-quality reporting. Additional examples cover multiple samples and collecting metrics into a table with Python.

Documented output filenames include sorted BAM alignment files, BAI indexes, duplicate-marked BAM files, flagstat summaries, Picard duplication metrics and a GATK gVCF. These are expected artifacts described by the recipes; no generated artifacts are supplied.

Using it

Requirements

The core workflow needs BWA-MEM2, samtools, a reference genome FASTA and sequencing reads. The main examples use separate paired-end FASTQ files. The guide also describes interleaved input and asks users to settle the species, assembly, sample name and library identity.

Picard and GATK are needed for their respective optional examples; the tabulated metrics recipe additionally imports Python and pandas. The document estimates about 28 GB RAM for a human genome index and 6–8 GB for mouse, without supporting measurements or a fully specified hardware configuration.

Mechanism

The guide describes BWA-MEM2 as locating short DNA sequences against a reference through a BWT-FM index. Its commands build that index, produce SAM alignment records and pipe them into samtools sort to create a coordinate-sorted BAM. A separate indexing step prepares the BAM for random access.

Read-group metadata associates alignments with samples, runs and libraries. The guide emphasizes that the SM sample name affects downstream sample grouping. It also explains that split reads can produce supplementary alignment records and exposes parameters for seed length, alignment score, clipping, threads and interleaved input.

Setup

The documented sequence starts by checking whether BWA-MEM2 is already installed. Installation examples use conda or a Linux x64 archive named for version 2.2.1. The guide then downloads a reference, builds its index, aligns paired reads and sorts and indexes the resulting BAM.

The file provides no assistant-side installation procedure. It also leaves samtools, Picard, GATK and Python package versions unspecified. Before adopting the examples, resolve the downstream flag policy and duplicate-marking input order for the installed tools.

Example

For an illustrative human sample, the guide aligns sample1_R1.fastq.gz and sample1_R2.fastq.gz against GRCh38.fa. Its detailed read group identifies sample1 as the sample, sample1_run1 as the run, lib1 as the library and ILLUMINA as the platform. The alignment is piped into samtools sort to write sample1.sorted.bam, followed by BAM indexing.

Later examples describe sample1.markdup.bam and a GATK sample1.g.vcf.gz output. No example BAM, variant file or measured mapping result establishes the outcome of these commands.

Assessment & evidence

Limitations

Both samtools duplicate-marking recipes feed a coordinate-sorted BAM into fixmate without showing read-name sorting or collation. This ordering needs review against the installed samtools requirements; the supplied material does not validate it.

The Python metrics parser assigns mapped values whenever a line contains both mapped and a percentage sign. By inspection, later matching lines can overwrite earlier values. The displayed read-count commands also show no explicit exclusion of secondary or supplementary records, despite the guide describing split-read records, so those totals should not automatically be interpreted as distinct reads.

The example described as a complete WGS pipeline does not show base-quality recalibration or the associated resource setup mentioned in troubleshooting. Completeness for a particular variant-calling workflow is therefore unestablished. The shell recipes also show no explicit pipeline error handling, so completion messages alone would not establish successful processing.

Reasoning

The skill's practical value is connecting alignment commands with sample metadata and downstream artifacts. Its warning about omitted or reused sample names addresses a consequential problem: later analysis can group samples incorrectly even when alignment appears normal.

Its detailed recipes make that guidance actionable, but the differences between parameter advice and commands, together with unresolved duplicate-marking order, limit confidence in unattended use. It is better supported as a reference for a reviewed workflow than as evidence of a validated end-to-end pipeline.

Alternatives

The guide points to STAR for RNA-seq reads spanning splice junctions, Bowtie2 as another DNA alignment option, BWA-backtrack for reads shorter than 50 bases and classic BWA when memory is constrained.

These are alternatives named by the document. Comparative accuracy, memory use, speed and compatibility are not demonstrated in the supplied material. The upstream BWA-MEM2 repository is also cited for program documentation and benchmarks [https://github.com/bwa-mem2/bwa-mem2].

Evidence

The supplied material consists of the selected SKILL.md and the repository LICENSE. The skill contains instructions, command examples, expected filenames, parameter tables and troubleshooting guidance. It supplies no execution logs, alignment outputs, benchmark measurements or downstream validation results. Execution behavior remains unassessed.

The document cites the BWA-MEM2 repository, two research papers and a GATK best-practices page [https://gatk.broadinstitute.org/hc/en-us/articles/360035535932]. Those references identify further reading; their contents are not included in the supplied evidence.

Access & freshness

Costs

No price, subscription, assistant token charge or measured execution cost is supplied. Total cost is unknown and depends on the chosen assistant and computing environment.

The examples require compute, memory and storage for reference indexes, reads and alignment files. Thread settings and a sorting-memory setting are shown, but the document provides no complete storage estimate or cost model.

Rights

The repository LICENSE names Creative Commons Attribution 4.0 International and credits jaechang-hits. It permits sharing and adaptation, including commercial use, subject to attribution, a license link, indicating changes and avoiding additional restrictions. The linked full terms are [https://creativecommons.org/licenses/by/4.0/legalcode].

The selected SKILL.md separately declares MIT in its metadata. The supplied notices do not explain whether this file is available under MIT, CC BY 4.0 or both, and no file-specific MIT license text is supplied. Applicable redistribution terms therefore need clarification.

The repository notice also references claude-scientific-skills under MIT and Biomni under Apache 2.0, with a separate CC BY 4.0 statement for adapted sgRNA content elsewhere. These acknowledgements do not establish which material, if any, was incorporated into this particular skill.

Freshness

The supplied snapshot was captured on 2026-11-16 at 14:10:13.669 UTC from commit 65d6ceb875e20b751ffb3a6d8ee19516558789e1. The exact instruction file is [https://raw.githubusercontent.com/jaechang-hits/SciAgent-Skills/65d6ceb875e20b751ffb3a6d8ee19516558789e1/skills/genomics-bioinformatics/alignment/bwa-mem2-dna-aligner/SKILL.md].

The installation example names BWA-MEM2 2.2.1, and one reference-download example names GENCODE release 47. These are versions appearing in the instructions, not evidence that they are current. Compatibility with current dependency releases is unknown.

Actions

Before using the recipes, choose the species and genome assembly, verify paired-read inputs and assign distinct sample, run and library metadata. Resolve the -M and -Y policy for the downstream tools, review the ordering around fixmate and make the metrics parser distinguish the intended statistics.

A useful next step is a small representative dataset with inspection of tool exit statuses, alignment records, sample headers, mapping statistics and duplicate-marking results. Establish any additional requirements of the intended GATK workflow before scaling up. Clarify the file-specific license before redistributing the skill.

Evidence for this report

LICENSEnotice · checked 2026-11-16