Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

bioinformatics-fundamentals

БесплатноБез исполняемых скриптовНе проверен

Core bioinformatics concepts including SAM/BAM format, AGP genome assembly format, sequencing technologies (Hi-C, HiFi, Illumina), quality metrics, and common…

Delphine-Lот Delphine-L★ 23 звезды на GitHub

Об этом скилле

Bioinformatics Fundamentals

Foundation knowledge for genomics and bioinformatics workflows. Provides essential understanding of file formats, sequencing technologies, and common data processing patterns.

When to Use This Skill

  • Working with sequencing data (PacBio HiFi, Hi-C, Illumina)
  • Debugging SAM/BAM alignment or filtering issues
  • Processing AGP files for genome assembly curation
  • Validating AGP coordinate systems and unloc assignments
  • Understanding paired-end vs single-end data
  • Interpreting quality metrics (MAPQ, PHRED scores)
  • Troubleshooting empty outputs or broken read pairs
  • Accessing GenomeArk QC data (GenomeScope, BUSCO, Merqury)
  • Curating karyotype data or chromosome count analysis
  • General bioinformatics data analysis

SAM/BAM Format Essentials

SAM Flags (Bitwise)

Flags are additive - a read can have multiple flags set simultaneously.

Common Flags:

  • 0x0001 (1): Read is paired in sequencing
  • 0x0002 (2): Each segment properly aligned (proper pair)
  • 0x0004 (4): Read unmapped
  • 0x0008 (8): Mate unmapped
  • 0x0010 (16): Read mapped to reverse strand
  • 0x0020 (32): Mate mapped to reverse strand
  • 0x0040 (64): First in pair (R1/forward)
  • 0x0080 (128): Second in pair (R2/reverse)
  • 0x0100 (256): Secondary alignment
  • 0x0400 (1024): PCR or optical duplicate
  • 0x0800 (2048): Supplementary alignment

Flag Combinations:

  • Properly paired R1: 99 (0x63 = 1 + 2 + 32 + 64)
  • Properly paired R2: 147 (0x93 = 1 + 2 + 16 + 128)
  • Unmapped read: 4
  • Mate unmapped: 8

See reference.md for complete flag tables, CIGAR operations, optional tags, and SAM mandatory fields.

Proper Pair Flag (0x0002)

What "proper pair" means:

  • Both R1 and R2 are mapped
  • Mapping orientations are correct (typically R1 forward, R2 reverse)
  • Insert size is reasonable for the library
  • Pair conforms to aligner's expectations

Important: Different aligners have different criteria for proper pairs!

MAPQ (Mapping Quality)

Formula: MAPQ = -10 * log10(P(mapping is wrong))

Common Thresholds:

  • MAPQ >= 60: High confidence (error probability < 0.0001%)
  • MAPQ >= 30: Good quality (error probability < 0.1%)
  • MAPQ >= 20: Acceptable (error probability < 1%)
  • MAPQ >= 10: Low confidence (error probability < 10%)
  • MAPQ = 0: Multi-mapper or unmapped

Note: MAPQ=0 can mean either unmapped OR equally good multiple mappings.

CIGAR String

Represents alignment between read and reference:

  • M: Match or mismatch (alignment match)
  • I: Insertion in read vs reference
  • D: Deletion in read vs reference
  • S: Soft clipping (bases in read not aligned)
  • H: Hard clipping (bases not in read sequence)
  • N: Skipped region (for RNA-seq splicing)

Example: 100M = perfect 100bp match Example: 50M5I45M = 50bp match, 5bp insertion, 45bp match

Sequencing Technologies

PacBio HiFi (High Fidelity)

Characteristics:

  • Long reads: 10-25 kb typical
  • High accuracy: >99.9% (Q20+)
  • Circular Consensus Sequencing (CCS)
  • Single-end data (though from circular molecules)
  • Excellent for de novo assembly

Best Mappers:

  • minimap2 presets: map-pb, map-hifi
  • BWA-MEM2 can work but optimized for short reads

Typical Use Cases:

  • De novo genome assembly
  • Structural variant detection
  • Isoform sequencing (Iso-Seq)
  • Haplotype phasing

Hi-C (Chromatin Conformation Capture)

Characteristics:

  • Paired-end short reads (typically 100-150 bp)
  • Read pairs capture chromatin interactions
  • R1 and R2 often map to different scaffolds/chromosomes
  • Requires careful proper pair handling
  • Used for scaffolding and 3D genome structure

Best Mappers:

  • BWA-MEM2 (paired-end mode)
  • BWA-MEM (paired-end mode)

Critical Concept: Hi-C read pairs intentionally map to distant loci. Region filtering can easily break pairs!

Typical Use Cases:

  • Genome scaffolding (connecting contigs)
  • 3D chromatin structure analysis
  • Haplotype phasing
  • Assembly quality assessment

Illumina Short Reads

Characteristics:

  • Short reads: 50-300 bp
  • Paired-end or single-end
  • High throughput
  • Well-established quality scores

Best Mappers:

  • BWA-MEM2, BWA-MEM (general purpose)
  • Bowtie2 (fast, local alignment)
  • STAR (RNA-seq spliced alignment)

See reference.md for detailed technical specs, error profiles, and quality metrics per technology.

Common Tools and Their Behaviors

samtools view

Purpose: Filter, convert, and view SAM/BAM files

Key Flags:

  • -b: Output BAM format
  • -h: Include header
  • -f INT: Require flags (keep reads WITH these flags)
  • -F INT: Filter flags (remove reads WITH these flags)
  • -q INT: Minimum MAPQ threshold
  • -L FILE: Keep reads overlapping regions in BED file

Important Behavior:

  • -L (region filtering) checks each read individually, not pairs
  • Can break read pairs if mates map to different regions
  • Flag filters (-f, -F) are applied **befo
Полный SKILL.md на GitHub

Установить bioinformatics-fundamentals в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Grep
Glob
Bash

Вложенные файлы

common-issues.mdgenomeark-data-access.mdgenomic-analysis-patterns.mdreference.md

FAQ

Что делает скилл bioinformatics-fundamentals?

Core bioinformatics concepts including SAM/BAM format, AGP genome assembly format, sequencing technologies (Hi-C, HiFi, Illumina), quality metrics, and common data processing patterns. Essential for debugging alignment, filtering, pairing issues, and AGP coordinate validation.

Как установить скилл bioinformatics-fundamentals?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл bioinformatics-fundamentals запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить bioinformatics-fundamentals с