Back to Skills

pysam

Genomic file toolkit. Read/write SAM/BAM/CRAM alignments, VCF/BCF variants, FASTA/FASTQ sequences, extract regions, calculate coverage, for NGS data processing pipelines.

5,913stars710forksUpdated 1/15/2026

Security Assessment

Safe(100/100)
Security Score100/100

About pysam

Pysam is a powerful Python module designed to facilitate the reading, manipulation, and writing of genomic datasets, providing a user-friendly interface to htslib. It addresses the challenges faced in genomic data analysis by allowing seamless interaction with various genomic file formats, including SAM, BAM, CRAM, VCF, BCF, FASTA, and FASTQ. This toolkit is particularly beneficial for bioinformaticians and researchers engaged in next-generation sequencing (NGS) data processing, as it simplifies complex operations and enhances productivity in analyzing genomic data.

FAQ

How do I install Pysam?

You can install Pysam using the command: 'uv pip install pysam'.

What file formats does Pysam support?

Pysam supports SAM, BAM, CRAM, VCF, BCF, FASTA, and FASTQ file formats.

Can I use Pysam for quality control of sequencing data?

Yes, Pysam can be utilized for quality control of sequencing data, including calculating coverage and filtering reads.

Is Pysam compatible with Python 3?

Yes, Pysam is compatible with Python 3.

What are the main use cases for Pysam?

Pysam is used for analyzing sequencing alignment files, genetic variants, extracting reference sequences, and implementing bioinformatics analysis pipelines.

Install pysam

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill