[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EF4RAG2RD2HG2CHQB6HYTX":3,"skill-same:01M7EF4RAG2RD2HG2CHQB6HYTX":62},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":30,"commitSha":31,"skillDirectory":32,"forksCount":14,"repositoryHtmlUrl":33,"repositoryHomepageUrl":33,"ownerHtmlUrl":34,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":35,"install":36,"resources":49},"01M7EF4RAG2RD2HG2CHQB6HYTX","bio-read-alignment-bwa-alignment",null,"Aligns DNA short reads (paired- or single-end) to a reference genome with bwa-mem2, the maintained successor to BWA-MEM, for WGS\u002FWES and germline\u002Fsomatic variant-calling pipelines; covers index build, read-group injection, the collate\u002Ffixmate\u002Fsort\u002Fmarkdup ordering, soft-clipping for SV split reads, ALT\u002Fdecoy-aware mapping on GRCh38, -K determinism, and streaming straight to a sorted BAM. Use when mapping DNA short reads to a reference for variant calling, coverage, ChIP\u002FATAC (alongside bowtie2-alignment), or SV detection. RNA-seq spliced alignment is star-alignment\u002Fhisat2-alignment; BAM sort\u002Fdedup\u002Fstats, the QC gate, and the cross-tool MAPQ scale are alignment-files; read trimming is read-qc; counting reads over features is rna-quantification.","Mr-Nobody-Anonymous\u002FAll-skills","Mr-Nobody-Anonymous","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F184253119?v=4","01M7AEXFJHKTYQW5R0ZCQQTWFV","anonymous","01M7C00M3GQR4QKP9GZA42GFAK",0,"MIT","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-read-alignment-bwa-alignment\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: bio-read-alignment-bwa-alignment\ndescription: Aligns DNA short reads (paired- or single-end) to a reference genome with bwa-mem2, the maintained successor to BWA-MEM, for WGS\u002FWES and germline\u002Fsomatic variant-calling pipelines; covers index build, read-group injection, the collate\u002Ffixmate\u002Fsort\u002Fmarkdup ordering, soft-clipping for SV split reads, ALT\u002Fdecoy-aware mapping on GRCh38, -K determinism, and streaming straight to a sorted BAM. Use when mapping DNA short reads to a reference for variant calling, coverage, ChIP\u002FATAC (alongside bowtie2-alignment), or SV detection. RNA-seq spliced alignment is star-alignment\u002Fhisat2-alignment; BAM sort\u002Fdedup\u002Fstats, the QC gate, and the cross-tool MAPQ scale are alignment-files; read trimming is read-qc; counting reads over features is rna-quantification.\ntool_type: cli\nprimary_tool: bwa-mem2\nsource: \"https:\u002F\u002Fgithub.com\u002FGPTomics\u002FbioSkills\"\nsource_repository: \"GPTomics\u002FbioSkills\"\nsource_path: \"read-alignment\u002Fbwa-alignment\u002FSKILL.md\"\nlicense: \"MIT\"\nimported_at: \"2026-09-20\"\n---\n\n## Version Compatibility\n\nReference examples tested with: bwa-mem2 2.2.1+, bwa 0.7.17+, samtools 1.19+\n\nBefore using code patterns, verify installed versions match. If versions differ:\n- CLI: `\u003Ctool> --version` then `\u003Ctool> --help` to confirm flags\n\nIf code throws ImportError, AttributeError, or TypeError, introspect the installed\npackage and adapt the example to match the actual API rather than retrying.\n\n# BWA-MEM2 Alignment -- Read Groups, the Reference, and the Output Contract Decide Downstream Truth\n\n**\"Align my DNA reads\"** -> Map reads to a reference with seed-and-extend, inject read groups, and stream to a sorted BAM -- because the aligner is the easy part: the reference analysis set, the @RG metadata, the -M\u002F-Y output flags, and the dedup ordering are the decisions that silently determine whether variant calling works.\n- CLI: `bwa-mem2 mem -t 8 -R '@RG\\tID:s1\\tSM:s1\\tPL:ILLUMINA\\tLB:lib1' ref.fa R1.fq.gz R2.fq.gz | samtools sort -@4 -o aligned.bam -`\n\nScope: DNA short-read mapping with bwa-mem2 (and original BWA-MEM \u002F bwa-aln), the GRCh38 analysis-set choice (below), and the output contract it must satisfy for GATK\u002FDeepVariant\u002FSV callers. BAM sort\u002Fdedup\u002Findex\u002Fstats, the QC gate (flagstat\u002Fidxstats interpretation), and contig-naming reconciliation -> alignment-files. The cross-tool MAPQ scale -> alignment-files\u002Fsam-bam-basics. Read trimming\u002FQC -> read-qc. Variant calling -> variant-calling. Structural-variant calling consumes the split reads produced here -> variant-calling\u002Fstructural-variant-calling. OUT OF SCOPE: RNA (use star-alignment\u002Fhisat2-alignment), long reads (long-read-sequencing\u002Flong-read-alignment), bisulfite (methylation-analysis\u002Fbismark-alignment).\n\n## The Single Most Important Modern Insight\n\n1. **Read groups are a hard contract, not metadata decoration.** GATK (HaplotypeCaller\u002FMutect2\u002FBQSR) and Picard refuse to run or behave wrongly without `@RG`. SM names the sample callers group by; ID is the BQSR error-model unit; PL sets the error model; LB is the unit MarkDuplicates dedups within (two reads at the same coordinate from different libraries are NOT duplicates). Inject them at mapping time with `-R`; adding them later (Picard AddOrReplaceReadGroups) is a full BAM rewrite. The catastrophic error is a clean-looking BAM that GATK rejects or mis-merges because SM\u002FLB are missing.\n2. **On GRCh38, ALT\u002Fdecoy handling is a correctness decision and a blind +ALT mapping is actively worse than no ALT.** ALT contigs are alternate haplotypes of hyperpolymorphic loci (MHC\u002FHLA); a read matches the primary copy AND the ALT copy, becomes a multimapper, and MAPQ collapses to 0 -- so variant callers drop it and HLA variants vanish. bwa-mem rescues this only if the `\u003Cidxbase>.alt` file is present (it then scores non-ALT hits against non-ALT hits only); adding ALT contigs to the FASTA WITHOUT the `.alt` imports the ambiguity and discards the fix. Use a decoy (hs38d1) always -- it absorbs reads from sequence missing from the primary assembly that would otherwise mismap and make recurrent false SNPs. The analysis-set layering is below.\n3. **The -M\u002F-Y flags and the dedup ordering are downstream contracts that fail silently.** `-M` marks split (chimeric) pieces as secondary (0x100) for legacy Picard -- but modern tools read supplementary (0x800) natively, and `-M` hides the split-read evidence SV callers need, so do NOT use it for SV work; use `-Y` (soft-clip supplementary) so every split piece keeps its full sequence. Duplicate marking has a strict order: `collate (name) -> fixmate -m -> sort (coordinate) -> markdup`; the `-m` adds the mate-score\u002FMC tags markdup requires, fixmate needs mates adjacent, markdup needs coordinate order. Any other order silently produces wrong duplicate flags.\n\n## What MAPQ Means Here (and what it does not)\n\nbwa-mem MAPQ runs 0-60 and is an ordinal confidence rank derived from the gap between the best and second-best alignment score and the seed coverage -- it is NOT a calibrated `-10*log10 P(wrong)`. It clusters bimodally at 0 (a competing locus scores as well -> multimapper) and 60 (no competitor, good seed support); the middle is sparse. It models only repeat ambiguity, not contamination or heuristic error, so MAPQ 60 means \"no competing locus found,\" not \"P(wrong)=1e-6\". A `-q 20` pre-filter drops most multimappers; rely on the caller's own MAPQ handling (GATK ignores MAPQ-0 and duplicates) rather than double-filtering aggressively. This scale is bwa-specific -- a `-q 60` \"unique\" filter empties a Bowtie2 (cap 42\u002F44) or STAR (255=unique) BAM; see alignment-files\u002Fsam-bam-basics for the cross-tool scale.\n\n## Tool Taxonomy\n\n| Tool \u002F subcommand | Citation | Mechanism \u002F role | When |\n|-------------------|----------|------------------|------|\n| `bwa-mem2 mem` | Vasimuddin 2019 IEEE IPDPS 314-324 | architecture-aware reimplementation of BWA-MEM; near-identical output, ~1.5-3x faster, ~2x RAM, different index | the default DNA aligner today |\n| `bwa mem` | Li 2013 arXiv:1303.3997 | SMEM seed + chain + banded affine SW; the reference implementation defining \"correct\" | when bwa-mem2 is unavailable or to match a legacy pipeline |\n| `bwa aln` + `samse`\u002F`sampe` | Li & Durbin 2009 Bioinformatics 25:1754 | bounded backtracking, no exact-seed requirement | ancient DNA \u002F very short (\u003C70 bp) damaged reads where the 19-mer seed fails |\n| `bwa bwasw` | Li & Durbin 2010 Bioinformatics 26:589 | SW over BWT for long\u002Fdivergent queries | legacy, superseded by mem; rarely used |\n| DRAGEN \u002F Parabricks fq2bam | -- | hardware-accelerated BWA-MEM (FPGA\u002FGPU); concordant, not bit-identical | high-throughput production where a validated pipeline accepts the small delta |\n| STAR \u002F HISAT2 | -- | splice-aware (route OUT) | any RNA library -> star-alignment, hisat2-alignment |\n\n## Decision Tree by Scenario\n\n| Scenario | Recommended | Why |\n|----------|-------------|-----|\n| Human WGS\u002FWES germline or somatic | `bwa-mem2 mem` + GRCh38 + decoy (+ALT\u002Fpostalt if HLA matters); add `-Y` | seed-and-extend standard; GATK\u002FDeepVariant expect its soft-clipped, ALT-aware output |\n| SV \u002F split-read detection | `bwa-mem2 mem -Y` (no `-M`) | supplementary alignments with full soft-clipped sequence are the split-read signal |\n| Reproducible \u002F functional-equivalence pipeline | add `-K 100000000` (and `-Y`) | pins per-batch insert-size estimation so output is thread-count-invariant |\n| ChIP-seq \u002F CUT&RUN | bwa-mem2 or bowtie2 | both work; bowtie2 is the ENCODE peak-assay default -> bowtie2-alignment |\n| ATAC-seq | bowtie2 (local\u002Fdovetail) | adapter read-through + short fragments favor local mode -> bowtie2-alignment |\n| Ancient \u002F very short damaged DNA | `bwa aln -l 1024 -n ~0.01-0.03 -o 2` + samse\u002Fsampe | mem's mandatory 19-mer seed fails on short damaged reads, biasing toward reference |\n| Allele-specific (ASE \u002F allelic binding) | bwa-mem2 then WASP-filter | reads carrying the alt allele align worse -> reference bias at het sites |\n| RNA-seq | route OUT to star-alignment \u002F hisat2-alignment | spliced reads need an N-CIGAR-capable aligner |\n\nDefault when uncertain: `bwa-mem2 mem` with read groups, streamed to a coordinate-sorted BAM, on a decoy-containing GRCh38 analysis set; add `-Y` for any pipeline that calls SVs.\n\n## Build Index\n\n```bash\nbwa-mem2 index reference.fa\n# emits reference.fa.0123 .amb .ann .bwt.2bit.64 .pac  (NOT interchangeable with `bwa index`'s .bwt\u002F.sa)\n```\n\nFor human DNA, obtain the decoy\u002FALT analysis set rather than a bare GRCh38: bwakit's `run-gen-ref hs38DH` downloads `hs38DH.fa` (primary + ALT + hs38d1 decoy + HLA) AND the `hs38DH.fa.alt` lift file, which must sit next to the index basename for ALT-aware mapping; the GATK\u002FBroad resource bundle ships an equivalent decoy reference. Pick the layer by what the downstream caller can handle: no-alt + decoy (hs38) when the caller is not ALT-aware (the safe minimum), or full + decoy (hs38DH) with ALT-aware mapping plus `bwa-postalt.js` when MHC\u002FHLA accuracy matters -- mismatching mapper-awareness to the analysis set silently degrades MHC\u002Fsegdup accuracy. Use GRCh38 over GRCh37, and never mix builds across a cohort.\n\n## Align with Read Groups, Stream to a Sorted BAM\n\n```bash\nbwa-mem2 mem -t 8 \\\n    -R '@RG\\tID:sample1\\tSM:sample1\\tPL:ILLUMINA\\tLB:lib1' \\\n    reference.fa reads_1.fq.gz reads_2.fq.gz | \\\n    samtools sort -@ 4 -o aligned.sorted.bam -\nsamtools index aligned.sorted.bam\n# single-end: drop reads_2.fq.gz. The literal \\t in -R must survive the shell (single quotes do this).\n```\n\n## Mark Duplicates (the strict ordering)\n\n```bash\n# collate -> fixmate -m -> sort -> markdup. -m adds the ms\u002FMC tags markdup requires.\nbwa-mem2 mem -t 8 -R '@RG\\tID:s1\\tSM:s1\\tPL:ILLUMINA\\tLB:lib1' reference.fa R1.fq.gz R2.fq.gz | \\\n    samtools collate -@ 4 -O -u - | \\\n    samtools fixmate -m -@ 4 -u - - | \\\n    samtools sort -@ 4 -u - | \\\n    samtools markdup -@ 4 - aligned.markdup.bam\nsamtools index aligned.markdup.bam\n# NEVER run this on amplicon\u002Fmultiplex-PCR data: identical primer-defined ends are by design, so\n# markdup deletes almost all real coverage. Use UMIs (fgbio\u002FUMI-tools) for PCR-dup removal there.\n```\n\n## SV \u002F Split-Read Mapping\n\n```bash\n# -Y soft-clips supplementary alignments so every split piece keeps its full sequence (SA-tag chain).\n# Do NOT add -M (it demotes split pieces to secondary and hides the SV evidence).\nbwa-mem2 mem -t 8 -Y -R '@RG\\tID:s1\\tSM:s1\\tPL:ILLUMINA' reference.fa R1.fq.gz R2.fq.gz | \\\n    samtools sort -@ 4 -o aligned.sv.bam -\n```\n\n## Reproducible Output Across Thread Counts\n\n```bash\n# Per-batch insert-size estimation makes default multithreaded output vary; -K pins the batch size.\nbwa-mem2 mem -t 8 -K 100000000 -Y \\\n    -R '@RG\\tID:s1\\tSM:s1\\tPL:ILLUMINA\\tLB:lib1' \\\n    reference.fa R1.fq.gz R2.fq.gz | samtools sort -@ 4 -o aligned.bam -\n```\n\n## Ancient \u002F Very Short Damaged DNA\n\n```bash\n# mem's 19-mer seed fails on short deaminated reads; bwa aln backtracks with no exact-seed requirement.\nbwa index reference.fa\nbwa aln -l 1024 -n 0.02 -o 2 -t 8 reference.fa reads.fq.gz > reads.sai\nbwa samse reference.fa reads.sai reads.fq.gz | samtools sort -o ancient.bam -\n# -l 1024 disables the seed (seed longer than the read); -n relaxes edit distance; -o 2 allows gaps.\n# The -n value is benchmark-dependent (commonly ~0.01-0.03); treat as a tunable starting point.\n```\n\n## Key Parameters (verified against bwa\u002Fbwa-mem2 source defaults)\n\n| Flag | Default | Effect |\n|------|---------|--------|\n| -t | 1 | threads |\n| -k | 19 | min seed (SMEM) length; lower = more sensitive on short\u002Fdivergent reads, slower; the reason aDNA defeats mem |\n| -r | 1.5 | re-seed a MEM longer than k*1.5; lower = more sensitive, slower |\n| -c | 500 | discard a seed occurring > N times (NOT 10000; the old sourceforge page is stale) |\n| -A \u002F -B \u002F -O \u002F -E | 1 \u002F 4 \u002F 6 \u002F 1 | match \u002F mismatch \u002F gap-open \u002F gap-extend; lower -B for divergent data, lower -O\u002F-E to permit longer indels |\n| -L | 5 | clip penalty; higher discourages soft-clipping (toward end-to-end) |\n| -T | 30 | min alignment score to OUTPUT (below it the read is reported unmapped) |\n| -M | off | mark split hits secondary (legacy Picard); harmful for SV -- prefer -Y |\n| -Y | off | soft-clip supplementary alignments (keep full sequence for SV callers) |\n| -K | auto | input bases per batch; fix it (e.g. 100000000) for thread-count-invariant output |\n| -R | -- | the @RG header line (literal \\t) |\n\n## Per-Method Failure Modes\n\n### Missing read groups\n**Trigger:** mapping without `-R '@RG...'`. **Mechanism:** GATK groups reads by SM and models error by ID\u002FLB. **Symptom:** GATK errors (\"no read group\"), or MarkDuplicates\u002FBQSR misbehave; samples cannot be told apart. **Fix:** inject SM\u002FID\u002FPL\u002FLB at mapping time; Picard AddOrReplaceReadGroups is a rewrite if missed.\n\n### GRCh38 + ALT without the .alt file\n**Trigger:** ALT contigs in the FASTA but no `\u003Cidxbase>.alt`. **Mechanism:** ALT copies become ordinary contigs, so every MHC\u002FHLA read multimaps and MAPQ collapses to 0. **Symptom:** a MAPQ-0 spike and missing variants in MHC\u002FHLA. **Fix:** supply the `.alt` (alt-aware mapping) + `bwa-postalt.js`, or use a no-alt + decoy analysis set if not ALT-aware (see Build Index above).\n\n### -M used in an SV pipeline\n**Trigger:** `bwa-mem2 mem -M ...` then split-read SV calling. **Mechanism:** `-M` marks split pieces secondary (0x100), which SV callers and MarkDuplicates skip. **Symptom:** SV caller finds little split-read support. **Fix:** drop `-M`, add `-Y`, then dedup, then call -> variant-calling\u002Fstructural-variant-calling.\n\n### fixmate without -m, or wrong dedup order\n**Trigger:** `samtools markdup` on a name-sorted BAM, or `fixmate` without `-m`. **Mechanism:** markdup needs coordinate order plus the ms\u002FMC tags `-m` writes. **Symptom:** silently wrong duplicate flags; over- or under-marking. **Fix:** `collate -> fixmate -m -> sort -> markdup` -> alignment-files\u002Fduplicate-handling.\n\n### Index built with the wrong tool\n**Trigger:** pointing bwa-mem2 at a `bwa index` directory or vice versa. **Mechanism:** bwa-mem2 uses `.bwt.2bit.64`; bwa uses `.bwt`\u002F`.sa`. **Symptom:** \"fail to locate the index\" \u002F format error. **Fix:** rebuild with the matching tool (`bwa-mem2 index`).\n\n### Reference bias at heterozygous sites\n**Trigger:** allele-specific analysis (ASE, allelic ChIP\u002FATAC, low-VAF somatic) off a raw BAM. **Mechanism:** the alt-allele read carries an extra mismatch, sometimes failing the 19-mer seed -> reference allele over-counted. **Symptom:** false allelic imbalance toward reference; depressed alt-allele VAF. **Fix:** WASP-filter (re-map allele-swapped reads, keep only if placement is unchanged), N-mask, a personalized reference, or a SNP-graph\u002Fpangenome.\n\n## Quantitative Thresholds\n\n| Threshold | Source | Rationale |\n|-----------|--------|-----------|\n| min seed -k 19 | bwamem.c::mem_opt_init | sets the sensitivity floor; the reason short damaged aDNA reads fail mem |\n| seed cap -c 500 | bwamem.c::mem_opt_init | above this a seed is uninformative and explodes extension; verified default (not 10000) |\n| scoring -A1 -B4 -O6 -E1 | bwamem.c::mem_opt_init | the substitution-rate the scheme tolerates is ~0.75*exp(-log(4)*B\u002FA) |\n| min output score -T 30 | bwamem.c::mem_opt_init | reads scoring below 30 are reported unmapped |\n| -K 100000000 for reproducibility | CCDG \u002F functional-equivalence pipelines | pins per-batch insert-size estimation independent of thread count |\n| bwa-mem2 human index\u002Fruntime RAM ~10 GB | bwa-mem2 README (approximate) | ~2x original bwa; plan node memory accordingly |\n| GRCh38 + hs38d1 decoy for human WGS | GATK\u002FCCDG guidance | decoy absorbs missing-assembly reads that otherwise make recurrent false variants |\n\n## Common Errors\n\n| Error \u002F symptom | Cause | Solution |\n|-----------------|-------|----------|\n| \"fail to locate the index\" | bwa vs bwa-mem2 index mismatch | rebuild with the matching tool (`bwa-mem2 index`) |\n| GATK \"no read group\" | missing `-R '@RG...'` | inject SM\u002FID\u002FPL\u002FLB at mapping time |\n| Low mapping rate | wrong reference\u002Fspecies, un-trimmed adapter, contamination | confirm species with read-qc\u002Fcontamination-screening; check the reference build; trim first -> read-qc; interpret stats -> alignment-files\u002Fbam-statistics |\n| MAPQ-0 spike, missing HLA variants | GRCh38+ALT without `.alt`, or no decoy | use decoy + ALT-aware mapping\u002Fpostalt, or no-alt+decoy (see Build Index) |\n| Wrong\u002Funstable BAM across runs | default per-batch insert estimation with multithreading | add `-K 100000000` and fix input order |\n| Almost all reads marked duplicate | MarkDuplicates run on amplicon\u002FPCR data | do not dedup amplicon; use UMIs -> read-qc\u002Fumi-processing, alignment-files\u002Fduplicate-handling |\n| markdup mis-marks duplicates | name-sorted input or fixmate without `-m` | `collate -> fixmate -m -> sort -> markdup` |\n\n## References\n\n- Li H. 2013. Aligning sequence reads, clone sequences and assembly contigs with BWA-MEM. arXiv:1303.3997.\n- Li H, Durbin R. 2009. Fast and accurate short read alignment with Burrows-Wheeler transform. *Bioinformatics* 25:1754-1760.\n- Li H, Durbin R. 2010. Fast and accurate long-read alignment with Burrows-Wheeler transform. *Bioinformatics* 26:589-595.\n- Vasimuddin M, Misra S, Li H, Aluru S. 2019. Efficient architecture-aware acceleration of BWA-MEM for multicore systems. *IEEE IPDPS* 2019:314-324.\n- Li H, Handsaker B, Wysoker A, et al. 2009. The Sequence Alignment\u002FMap format and SAMtools. *Bioinformatics* 25:2078-2079.\n- van de Geijn B, McVicker G, Gilad Y, Pritchard JK. 2015. WASP: allele-specific software for robust molecular quantitative trait locus discovery. *Nat Methods* 12:1061-1063.\n\n## Related Skills\n\n- bowtie2-alignment - ChIP\u002FATAC DNA mapping with end-to-end vs local modes\n- star-alignment - RNA splice-aware alignment (when reads cross junctions)\n- read-qc\u002Ffastp-workflow - Trim and QC reads before alignment\n- read-qc\u002Fumi-processing - UMI extraction\u002Fdedup for amplicon and low-input libraries (do not coordinate-dedup amplicon)\n- alignment-files\u002Fduplicate-handling - Mark\u002Fremove duplicates; UMI-aware dedup\n- alignment-files\u002Fsam-bam-basics - SAM flags, CIGAR, the cross-tool MAPQ scale, SA tags\n- alignment-files\u002Fbam-statistics - flagstat\u002Fidxstats\u002Fstats QC gate; what a high mapping rate hides\n- variant-calling\u002Fvariant-calling - Call variants from the aligned BAM\n- variant-calling\u002Fstructural-variant-calling - SV calling from split\u002Fdiscordant reads (needs -Y)\n","## Version Compatibility\n\nReference examples tested with: bwa-mem2 2.2.1+, bwa 0.7.17+, samtools 1.19+\n\nBefore using code patterns, verify installed versions match. If versions differ:\n- CLI: `\u003Ctool> --version` then `\u003Ctool> --help` to confirm flags\n\nIf code throws ImportError, AttributeError, or TypeError, introspect the installed\npackage and adapt the example to match the actual API rather than retrying.\n\n# BWA-MEM2 Alignment -- Read Groups, the Reference, and the Output Contract Decide Downstream Truth\n\n**\"Align my DNA reads\"** -> Map reads to a reference with seed-and-extend, inject read groups, and stream to a sorted BAM -- because the aligner is the easy part: the reference analysis set, the @RG metadata, the -M\u002F-Y output flags, and the dedup ordering are the decisions that silently determine whether variant calling works.\n- CLI: `bwa-mem2 mem -t 8 -R '@RG\\tID:s1\\tSM:s1\\tPL:ILLUMINA\\tLB:lib1' ref.fa R1.fq.gz R2.fq.gz | samtools sort -@4 -o aligned.bam -`\n\nScope: DNA short-read mapping with bwa-mem2 (and original BWA-MEM \u002F bwa-aln), the GRCh38 analysis-set choice (below), and the output contract it must satisfy for GATK\u002FDeepVariant\u002FSV callers. BAM sort\u002Fdedup\u002Findex\u002Fstats, the QC gate (flagstat\u002Fidxstats interpretation), and contig-naming reconciliation -> alignment-files. The cross-tool MAPQ scale -> alignment-files\u002Fsam-bam-basics. Read trimming\u002FQC -> read-qc. Variant calling -> variant-calling. Structural-variant calling consumes the split reads produced here -> variant-calling\u002Fstructural-variant-calling. OUT OF SCOPE: RNA (use star-alignment\u002Fhisat2-alignment), long reads (long-read-sequencing\u002Flong-read-alignment), bisulfite (methylation-analysis\u002Fbismark-alignment).\n\n## The Single Most Important Modern Insight\n\n1. **Read groups are a hard contract, not metadata decoration.** GATK (HaplotypeCaller\u002FMutect2\u002FBQSR) and Picard refuse to run or behave wrongly without `@RG`. SM names the sample callers group by; ID is the BQSR error-model unit; PL sets the error model; LB is the unit MarkDuplicates dedups within (two reads at the same coordinate from different libraries are NOT duplicates). Inject them at mapping time with `-R`; adding them later (Picard AddOrReplaceReadGroups) is a full BAM rewrite. The catastrophic error is a clean-looking BAM that GATK rejects or mis-merges because SM\u002FLB are missing.\n2. **On GRCh38, ALT\u002Fdecoy handling is a correctness decision and a blind +ALT mapping is actively worse than no ALT.** ALT contigs are alternate haplotypes of hyperpolymorphic loci (MHC\u002FHLA); a read matches the primary copy AND the ALT copy, becomes a multimapper, and MAPQ collapses to 0 -- so variant callers drop it and HLA variants vanish. bwa-mem rescues this only if the `\u003Cidxbase>.alt` file is present (it then scores non-ALT hits against non-ALT hits only); adding ALT contigs to the FASTA WITHOUT the `.alt` imports the ambiguity and discards the fix. Use a decoy (hs38d1) always -- it absorbs reads from sequence missing from the primary assembly that would otherwise mismap and make recurrent false SNPs. The analysis-set layering is below.\n3. **The -M\u002F-Y flags and the dedup ordering are downstream contracts that fail silently.** `-M` marks split (chimeric) pieces as secondary (0x100) for legacy Picard -- but modern tools read supplementary (0x800) natively, and `-M` hides the split-read evidence SV callers need, so do NOT use it for SV work; use `-Y` (soft-clip supplementary) so every split piece keeps its full sequence. Duplicate marking has a strict order: `collate (name) -> fixmate -m -> sort (coordinate) -> markdup`; the `-m` adds the mate-score\u002FMC tags markdup requires, fixmate needs mates adjacent, markdup needs coordinate order. Any other order silently produces wrong duplicate flags.\n\n## What MAPQ Means Here (and what it does not)\n\nbwa-mem MAPQ runs 0-60 and is an ordinal confidence rank derived from the gap between the best and second-best alignment score and the seed coverage -- it is NOT a calibrated `-10*log10 P(wrong)`. It clusters bimodally at 0 (a competing locus scores as well -> multimapper) and 60 (no competitor, good seed support); the middle is sparse. It models only repeat ambiguity, not contamination or heuristic error, so MAPQ 60 means \"no competing locus found,\" not \"P(wrong)=1e-6\". A `-q 20` pre-filter drops most multimappers; rely on the caller's own MAPQ handling (GATK ignores MAPQ-0 and duplicates) rather than double-filtering aggressively. This scale is bwa-specific -- a `-q 60` \"unique\" filter empties a Bowtie2 (cap 42\u002F44) or STAR (255=unique) BAM; see alignment-files\u002Fsam-bam-basics for the cross-tool scale.\n\n## Tool Taxonomy\n\n| Tool \u002F subcommand | Citation | Mechanism \u002F role | When |\n|-------------------|----------|------------------|------|\n| `bwa-mem2 mem` | Vasimuddin 2019 IEEE IPDPS 314-324 | architecture-aware reimplementation of BWA-MEM; near-identical output, ~1.5-3x faster, ~2x RAM, different index | the default DNA aligner today |\n| `bwa mem` | Li 2013 arXiv:1303.3997 | SMEM seed + chain + banded affine SW; the reference implementation defining \"correct\" | when bwa-mem2 is unavailable or to match a legacy pipeline |\n| `bwa aln` + `samse`\u002F`sampe` | Li & Durbin 2009 Bioinformatics 25:1754 | bounded backtracking, no exact-seed requirement | ancient DNA \u002F very short (\u003C70 bp) damaged reads where the 19-mer seed fails |\n| `bwa bwasw` | Li & Durbin 2010 Bioinformatics 26:589 | SW over BWT for long\u002Fdivergent queries | legacy, superseded by mem; rarely used |\n| DRAGEN \u002F Parabricks fq2bam | -- | hardware-accelerated BWA-MEM (FPGA\u002FGPU); concordant, not bit-identical | high-throughput production where a validated pipeline accepts the small delta |\n| STAR \u002F HISAT2 | -- | splice-aware (route OUT) | any RNA library -> star-alignment, hisat2-alignment |\n\n## Decision Tree by Scenario\n\n| Scenario | Recommended | Why |\n|----------|-------------|-----|\n| Human WGS\u002FWES germline or somatic | `bwa-mem2 mem` + GRCh38 + decoy (+ALT\u002Fpostalt if HLA matters); add `-Y` | seed-and-extend standard; GATK\u002FDeepVariant expect its soft-clipped, ALT-aware output |\n| SV \u002F split-read detection | `bwa-mem2 mem -Y` (no `-M`) | supplementary alignments with full soft-clipped sequence are the split-read signal |\n| Reproducible \u002F functional-equivalence pipeline | add `-K 100000000` (and `-Y`) | pins per-batch insert-size estimation so output is thread-count-invariant |\n| ChIP-seq \u002F CUT&RUN | bwa-mem2 or bowtie2 | both work; bowtie2 is the ENCODE peak-assay default -> bowtie2-alignment |\n| ATAC-seq | bowtie2 (local\u002Fdovetail) | adapter read-through + short fragments favor local mode -> bowtie2-alignment |\n| Ancient \u002F very short damaged DNA | `bwa aln -l 1024 -n ~0.01-0.03 -o 2` + samse\u002Fsampe | mem's mandatory 19-mer seed fails on short damaged reads, biasing toward reference |\n| Allele-specific (ASE \u002F allelic binding) | bwa-mem2 then WASP-filter | reads carrying the alt allele align worse -> reference bias at het sites |\n| RNA-seq | route OUT to star-alignment \u002F hisat2-alignment | spliced reads need an N-CIGAR-capable aligner |\n\nDefault when uncertain: `bwa-mem2 mem` with read groups, streamed to a coordinate-sorted BAM, on a decoy-containing GRCh38 analysis set; add `-Y` for any pipeline that calls SVs.\n\n## Build Index\n\n```bash\nbwa-mem2 index reference.fa\n# emits reference.fa.0123 .amb .ann .bwt.2bit.64 .pac  (NOT interchangeable with `bwa index`'s .bwt\u002F.sa)\n```\n\nFor human DNA, obtain the decoy\u002FALT analysis set rather than a bare GRCh38: bwakit's `run-gen-ref hs38DH` downloads `hs38DH.fa` (primary + ALT + hs38d1 decoy + HLA) AND the `hs38DH.fa.alt` lift file, which must sit next to the index basename for ALT-aware mapping; the GATK\u002FBroad resource bundle ships an equivalent decoy reference. Pick the layer by what the downstream caller can handle: no-alt + decoy (hs38) when the caller is not ALT-aware (the safe minimum), or full + decoy (hs38DH) with ALT-aware mapping plus `bwa-postalt.js` when MHC\u002FHLA accuracy matters -- mismatching mapper-awareness to the analysis set silently degrades MHC\u002Fsegdup accuracy. Use GRCh38 over GRCh37, and never mix builds across a cohort.\n\n## Align with Read Groups, Stream to a Sorted BAM\n\n```bash\nbwa-mem2 mem -t 8 \\\n    -R '@RG\\tID:sample1\\tSM:sample1\\tPL:ILLUMINA\\tLB:lib1' \\\n    reference.fa reads_1.fq.gz reads_2.fq.gz | \\\n    samtools sort -@ 4 -o aligned.sorted.bam -\nsamtools index aligned.sorted.bam\n# single-end: drop reads_2.fq.gz. The literal \\t in -R must survive the shell (single quotes do this).\n```\n\n## Mark Duplicates (the strict ordering)\n\n```bash\n# collate -> fixmate -m -> sort -> markdup. -m adds the ms\u002FMC tags markdup requires.\nbwa-mem2 mem -t 8 -R '@RG\\tID:s1\\tSM:s1\\tPL:ILLUMINA\\tLB:lib1' reference.fa R1.fq.gz R2.fq.gz | \\\n    samtools collate -@ 4 -O -u - | \\\n    samtools fixmate -m -@ 4 -u - - | \\\n    samtools sort -@ 4 -u - | \\\n    samtools markdup -@ 4 - aligned.markdup.bam\nsamtools index aligned.markdup.bam\n# NEVER run this on amplicon\u002Fmultiplex-PCR data: identical primer-defined ends are by design, so\n# markdup deletes almost all real coverage. Use UMIs (fgbio\u002FUMI-tools) for PCR-dup removal there.\n```\n\n## SV \u002F Split-Read Mapping\n\n```bash\n# -Y soft-clips supplementary alignments so every split piece keeps its full sequence (SA-tag chain).\n# Do NOT add -M (it demotes split pieces to secondary and hides the SV evidence).\nbwa-mem2 mem -t 8 -Y -R '@RG\\tID:s1\\tSM:s1\\tPL:ILLUMINA' reference.fa R1.fq.gz R2.fq.gz | \\\n    samtools sort -@ 4 -o aligned.sv.bam -\n```\n\n## Reproducible Output Across Thread Counts\n\n```bash\n# Per-batch insert-size estimation makes default multithreaded output vary; -K pins the batch size.\nbwa-mem2 mem -t 8 -K 100000000 -Y \\\n    -R '@RG\\tID:s1\\tSM:s1\\tPL:ILLUMINA\\tLB:lib1' \\\n    reference.fa R1.fq.gz R2.fq.gz | samtools sort -@ 4 -o aligned.bam -\n```\n\n## Ancient \u002F Very Short Damaged DNA\n\n```bash\n# mem's 19-mer seed fails on short deaminated reads; bwa aln backtracks with no exact-seed requirement.\nbwa index reference.fa\nbwa aln -l 1024 -n 0.02 -o 2 -t 8 reference.fa reads.fq.gz > reads.sai\nbwa samse reference.fa reads.sai reads.fq.gz | samtools sort -o ancient.bam -\n# -l 1024 disables the seed (seed longer than the read); -n relaxes edit distance; -o 2 allows gaps.\n# The -n value is benchmark-dependent (commonly ~0.01-0.03); treat as a tunable starting point.\n```\n\n## Key Parameters (verified against bwa\u002Fbwa-mem2 source defaults)\n\n| Flag | Default | Effect |\n|------|---------|--------|\n| -t | 1 | threads |\n| -k | 19 | min seed (SMEM) length; lower = more sensitive on short\u002Fdivergent reads, slower; the reason aDNA defeats mem |\n| -r | 1.5 | re-seed a MEM longer than k*1.5; lower = more sensitive, slower |\n| -c | 500 | discard a seed occurring > N times (NOT 10000; the old sourceforge page is stale) |\n| -A \u002F -B \u002F -O \u002F -E | 1 \u002F 4 \u002F 6 \u002F 1 | match \u002F mismatch \u002F gap-open \u002F gap-extend; lower -B for divergent data, lower -O\u002F-E to permit longer indels |\n| -L | 5 | clip penalty; higher discourages soft-clipping (toward end-to-end) |\n| -T | 30 | min alignment score to OUTPUT (below it the read is reported unmapped) |\n| -M | off | mark split hits secondary (legacy Picard); harmful for SV -- prefer -Y |\n| -Y | off | soft-clip supplementary alignments (keep full sequence for SV callers) |\n| -K | auto | input bases per batch; fix it (e.g. 100000000) for thread-count-invariant output |\n| -R | -- | the @RG header line (literal \\t) |\n\n## Per-Method Failure Modes\n\n### Missing read groups\n**Trigger:** mapping without `-R '@RG...'`. **Mechanism:** GATK groups reads by SM and models error by ID\u002FLB. **Symptom:** GATK errors (\"no read group\"), or MarkDuplicates\u002FBQSR misbehave; samples cannot be told apart. **Fix:** inject SM\u002FID\u002FPL\u002FLB at mapping time; Picard AddOrReplaceReadGroups is a rewrite if missed.\n\n### GRCh38 + ALT without the .alt file\n**Trigger:** ALT contigs in the FASTA but no `\u003Cidxbase>.alt`. **Mechanism:** ALT copies become ordinary contigs, so every MHC\u002FHLA read multimaps and MAPQ collapses to 0. **Symptom:** a MAPQ-0 spike and missing variants in MHC\u002FHLA. **Fix:** supply the `.alt` (alt-aware mapping) + `bwa-postalt.js`, or use a no-alt + decoy analysis set if not ALT-aware (see Build Index above).\n\n### -M used in an SV pipeline\n**Trigger:** `bwa-mem2 mem -M ...` then split-read SV calling. **Mechanism:** `-M` marks split pieces secondary (0x100), which SV callers and MarkDuplicates skip. **Symptom:** SV caller finds little split-read support. **Fix:** drop `-M`, add `-Y`, then dedup, then call -> variant-calling\u002Fstructural-variant-calling.\n\n### fixmate without -m, or wrong dedup order\n**Trigger:** `samtools markdup` on a name-sorted BAM, or `fixmate` without `-m`. **Mechanism:** markdup needs coordinate order plus the ms\u002FMC tags `-m` writes. **Symptom:** silently wrong duplicate flags; over- or under-marking. **Fix:** `collate -> fixmate -m -> sort -> markdup` -> alignment-files\u002Fduplicate-handling.\n\n### Index built with the wrong tool\n**Trigger:** pointing bwa-mem2 at a `bwa index` directory or vice versa. **Mechanism:** bwa-mem2 uses `.bwt.2bit.64`; bwa uses `.bwt`\u002F`.sa`. **Symptom:** \"fail to locate the index\" \u002F format error. **Fix:** rebuild with the matching tool (`bwa-mem2 index`).\n\n### Reference bias at heterozygous sites\n**Trigger:** allele-specific analysis (ASE, allelic ChIP\u002FATAC, low-VAF somatic) off a raw BAM. **Mechanism:** the alt-allele read carries an extra mismatch, sometimes failing the 19-mer seed -> reference allele over-counted. **Symptom:** false allelic imbalance toward reference; depressed alt-allele VAF. **Fix:** WASP-filter (re-map allele-swapped reads, keep only if placement is unchanged), N-mask, a personalized reference, or a SNP-graph\u002Fpangenome.\n\n## Quantitative Thresholds\n\n| Threshold | Source | Rationale |\n|-----------|--------|-----------|\n| min seed -k 19 | bwamem.c::mem_opt_init | sets the sensitivity floor; the reason short damaged aDNA reads fail mem |\n| seed cap -c 500 | bwamem.c::mem_opt_init | above this a seed is uninformative and explodes extension; verified default (not 10000) |\n| scoring -A1 -B4 -O6 -E1 | bwamem.c::mem_opt_init | the substitution-rate the scheme tolerates is ~0.75*exp(-log(4)*B\u002FA) |\n| min output score -T 30 | bwamem.c::mem_opt_init | reads scoring below 30 are reported unmapped |\n| -K 100000000 for reproducibility | CCDG \u002F functional-equivalence pipelines | pins per-batch insert-size estimation independent of thread count |\n| bwa-mem2 human index\u002Fruntime RAM ~10 GB | bwa-mem2 README (approximate) | ~2x original bwa; plan node memory accordingly |\n| GRCh38 + hs38d1 decoy for human WGS | GATK\u002FCCDG guidance | decoy absorbs missing-assembly reads that otherwise make recurrent false variants |\n\n## Common Errors\n\n| Error \u002F symptom | Cause | Solution |\n|-----------------|-------|----------|\n| \"fail to locate the index\" | bwa vs bwa-mem2 index mismatch | rebuild with the matching tool (`bwa-mem2 index`) |\n| GATK \"no read group\" | missing `-R '@RG...'` | inject SM\u002FID\u002FPL\u002FLB at mapping time |\n| Low mapping rate | wrong reference\u002Fspecies, un-trimmed adapter, contamination | confirm species with read-qc\u002Fcontamination-screening; check the reference build; trim first -> read-qc; interpret stats -> alignment-files\u002Fbam-statistics |\n| MAPQ-0 spike, missing HLA variants | GRCh38+ALT without `.alt`, or no decoy | use decoy + ALT-aware mapping\u002Fpostalt, or no-alt+decoy (see Build Index) |\n| Wrong\u002Funstable BAM across runs | default per-batch insert estimation with multithreading | add `-K 100000000` and fix input order |\n| Almost all reads marked duplicate | MarkDuplicates run on amplicon\u002FPCR data | do not dedup amplicon; use UMIs -> read-qc\u002Fumi-processing, alignment-files\u002Fduplicate-handling |\n| markdup mis-marks duplicates | name-sorted input or fixmate without `-m` | `collate -> fixmate -m -> sort -> markdup` |\n\n## References\n\n- Li H. 2013. Aligning sequence reads, clone sequences and assembly contigs with BWA-MEM. arXiv:1303.3997.\n- Li H, Durbin R. 2009. Fast and accurate short read alignment with Burrows-Wheeler transform. *Bioinformatics* 25:1754-1760.\n- Li H, Durbin R. 2010. Fast and accurate long-read alignment with Burrows-Wheeler transform. *Bioinformatics* 26:589-595.\n- Vasimuddin M, Misra S, Li H, Aluru S. 2019. Efficient architecture-aware acceleration of BWA-MEM for multicore systems. *IEEE IPDPS* 2019:314-324.\n- Li H, Handsaker B, Wysoker A, et al. 2009. The Sequence Alignment\u002FMap format and SAMtools. *Bioinformatics* 25:2078-2079.\n- van de Geijn B, McVicker G, Gilad Y, Pritchard JK. 2015. WASP: allele-specific software for robust molecular quantitative trait locus discovery. *Nat Methods* 12:1061-1063.\n\n## Related Skills\n\n- bowtie2-alignment - ChIP\u002FATAC DNA mapping with end-to-end vs local modes\n- star-alignment - RNA splice-aware alignment (when reads cross junctions)\n- read-qc\u002Ffastp-workflow - Trim and QC reads before alignment\n- read-qc\u002Fumi-processing - UMI extraction\u002Fdedup for amplicon and low-input libraries (do not coordinate-dedup amplicon)\n- alignment-files\u002Fduplicate-handling - Mark\u002Fremove duplicates; UMI-aware dedup\n- alignment-files\u002Fsam-bam-basics - SAM flags, CIGAR, the cross-tool MAPQ scale, SA tags\n- alignment-files\u002Fbam-statistics - flagstat\u002Fidxstats\u002Fstats QC gate; what a high mapping rate hides\n- variant-calling\u002Fvariant-calling - Call variants from the aligned BAM\n- variant-calling\u002Fstructural-variant-calling - SV calling from split\u002Fdiscordant reads (needs -Y)\n",{"name":5,"source":24,"license":15,"tool_type":25,"description":7,"imported_at":26,"source_path":27,"primary_tool":28,"source_repository":29},"https:\u002F\u002Fgithub.com\u002FGPTomics\u002FbioSkills","cli","2026-09-20","read-alignment\u002Fbwa-alignment\u002FSKILL.md","bwa-mem2","GPTomics\u002FbioSkills","main","2d1750717747097b602acf30bd09a7cbd4b4c6ea","awesome_skills\u002Fbiology\u002Fbio-read-alignment-bwa-alignment","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous","2026-11-09 11:45:36",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill bio-read-alignment-bwa-alignment",{"tool":42,"command":43},"bunx","bunx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill bio-read-alignment-bwa-alignment",{"tool":45,"command":46},"pnpm","pnpm dlx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill bio-read-alignment-bwa-alignment","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-read-alignment-bwa-alignment\u002FSKILL.md",true,[50,56],{"path":51,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":54,"sourceHtmlUrl":55},"examples\u002Falign_bwa.sh","SCRIPT","脚本",1477,"https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-read-alignment-bwa-alignment\u002Fexamples\u002Falign_bwa.sh",{"path":57,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":60,"sourceHtmlUrl":61},"usage-guide.md","REFERENCE","参考文档",5444,"https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-read-alignment-bwa-alignment\u002Fusage-guide.md",[63,71,78,85,92,99],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":70},"01M7FFFZPC2025JQQHPHDX154J","dei-assessment","Assess diversity, equity, and inclusion with metrics. TRIGGERS - Use when user needs help with dei-assessment related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fdei-assessment\u002FSKILL.md",[],[],"2026-11-16 10:05:34",{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":70},"01M7FFFWN8H4WA7A6Y398QKB6J","dei-action-plan","Create DEI action plans with goals and initiatives. TRIGGERS - Use when user needs help with dei-action-plan related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fdei-action-plan\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":70},"01M7FFFSHTM0QZRVZ2NRJTJ0PY","culture-fit-assessment","Design culture add assessment processes. TRIGGERS - Use when user needs help with culture-fit-assessment related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fculture-fit-assessment\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":70},"01M7FFFMA12RKEQA38KHJSXXPS","cowork-to-code-bridge","Use an already-installed, independently verified cowork-to-code bridge to run narrowly approved actions on the user's own macOS, Linux, or WSL2 machine through a local file queue.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcowork-to-code-bridge\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":70},"01M7FFFH1F6M8YRGW5V487GH1K","counter-offer-response","Draft counter-offer responses for retention. TRIGGERS - Use when user needs help with counter-offer-response related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcounter-offer-response\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":70},"01M7FFFDGEHV8Y7J9N40HZXW52","continuous-feedback-system","Design continuous feedback systems. TRIGGERS - Use when user needs help with continuous-feedback-system related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcontinuous-feedback-system\u002FSKILL.md",[],[]]