pysam
Reads and writes BAM, CRAM and VCF files from Python through HTSlib.
Install
Ships scriptsgh skill install K-Dense-AI/scientific-agent-skills pysam
Reading, querying, filtering or writing SAM/BAM/CRAM, VCF/BCF, FASTA/FASTQ or tabix-indexed files; pileup and coverage work.
- Author
- K-Dense Inc.
- License
- MIT
Covers the streaming, index-aware side of genomic file handling: region queries, pileups, coverage, flag and quality filtering, and writing new files without losing the header. Format, sort order, index and coordinate convention have to be settled before any code is written, because mixing zero-based Python coordinates with one-based region strings is the usual source of silently wrong results. Four bundled scripts inspect an unfamiliar file, summarize alignment QC, filter reads and summarize variants. Guidance is pinned to pysam 0.24.0 over HTSlib 1.23.1 and carries a separate migration note.
Similar skills
AWS Core Skills
SkillTwenty AWS-published skills covering CDK, IAM, containers, observability and cost.
explain-simply
SkillCloses a long answer with a few plain sentences.
Systematic Debugging
SkillForces reproduce-first debugging instead of speculative patching
Comments(0)
Sign in to comment