Skill / SKILL.md

Alterlab Pysam

AlterLab-IEU/AlterLab-Academic-Skills

Read and write genomic alignment and variant files in Python with pysam (htslib bindings) — SAM/BAM/CRAM alignments, VCF/BCF variants, and FASTA/FASTQ sequences, plus region extraction and per-base coverage/pileup. Use when scripting NGS data-processing pipelines that parse, filter, index, or compute coverage over BAM/CRAM/VCF files. Part of the AlterLab Academic Skills suite.
2 views 86 repository stars 0 commentsUpdated Nov 27, 2026
Overview

Read and write genomic alignment and variant files in Python with pysam (htslib bindings) — SAM/BAM/CRAM alignments, VCF/BCF variants, and FASTA/FASTQ sequences, plus region extraction and per-base coverage/pileup. Use when scripting NGS data-processing pipelines that parse, filter, index, or compute coverage over BAM/CRAM/VCF files. Part of the AlterLab Academic Skills suite.

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/AlterLab-IEU/AlterLab-Academic-Skills' skill-source

Use the complete skill-source/skills/bioinformatics/alterlab-pysam directory with your client’s skill installer.

  • skills/bioinformatics/alterlab-pysam

    main · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory skills/bioinformatics/alterlab-pysam

Compatibility & requirements

Declared compatibility

Self-contained — runs under `uv run python` with the skill's Python package installed; no API key or account required. Written for pysam 0.24.x (current 0.24.1 as of 2026-09), which wraps htslib/samtools/bcftools 1.24 and supports Python 3.9-3.15. Wheels bundle htslib, so no separate samtools install is needed.

Declared tools

Read Write Edit Bash(python:*) Bash(uv:*)

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Source & validation
Source status
Awaiting source check
Format validation
Format valid
Checked at
Pending source check
Content SHA-256
d0c255b194299e195b2dc2a5a8d0a95ac8ec6f1f722d7f9e023120c49d9963b6
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills