What problem does it solve?
This Skill provides Pythonic interfaces for genomic file operations, solving the problem of working with complex genomic data formats like SAM/BAM/CRAM and VCF/BCF.
Core Features & Use Cases
- Genomic File Operations: Read, manipulate, and write genomic datasets with Pythonic syntax.
- Alignment File Operations: Work with SAM/BAM/CRAM alignment files for mapping, coverage, and quality control.
- Variant File Operations: Handle VCF/BCF variant files for variant analysis, filtering, and annotation.
- Sequence File Operations: Process FASTA/FASTQ sequences for extraction, validation, and statistics.
- Use Case: For a researcher analyzing NGS data, this Skill can be used to efficiently map reads, call variants, and extract reference sequences.
Quick Start
Install the pysam skill and run the following command to fetch reads from a specified region:
uv pip install pysam
pysam fetch "chr1" 1000 2000 -o output.bam