polars-bio

Perform genomic interval arithmetic and stream BED, VCF, and BAM files with Polars.

2|Updated Jun 4, 2026
One-click install
npx skills add https://github.com/Lord1Egypt/scientific-agent-toolkit --skill polars-bio-lord1egypt
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: polars-bio
Source: https://github.com/Lord1Egypt/scientific-agent-toolkit/tree/main/scientific-skills/polars-bio
Command: npx skills add https://github.com/Lord1Egypt/scientific-agent-toolkit --skill polars-bio-lord1egypt

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires polars, polars-bio, and includes references (resource) components.

What problem does it solve?

This skill addresses the performance bottlenecks and memory limitations inherent in traditional bioinformatics tools when processing large-scale genomic datasets.

Core Features & Use Cases

  • Genomic Interval Arithmetic: Perform high-speed overlap, nearest, merge, and subtract operations on genomic intervals.
  • Streaming Bioinformatics I/O: Read and write massive BED, VCF, BAM, and GFF files using out-of-core streaming to prevent memory overflow.
  • SQL-based Analysis: Execute complex SQL queries directly on genomic data files using the integrated DataFusion engine.

Quick Start

Use the polars-bio skill to perform an overlap operation between my peak intervals in peaks.bed and gene annotations in genes.bed.

Frequently Asked Questions about polars-bio

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I perform genomic interval operations on large BED files without running out of memory?

Genomic interval operations on large BED files are handled using out-of-core streaming via Polars and Apache DataFusion, processing overlaps and merges without loading entire datasets into memory.

Can I run SQL queries directly on VCF and BAM files for bioinformatics analysis?

SQL queries can be executed directly on VCF and BAM files using the integrated DataFusion engine, enabling complex filtering and analysis without prior format conversion.

What is the best way to find overlaps between genomic intervals in Python?

Finding overlaps between genomic intervals is best handled using high-performance interval arithmetic that leverages Polars and DataFusion for rapid computation across standard genomic formats.

Does polars-bio support streaming I/O for massive genomic datasets?

polars-bio supports streaming I/O for massive genomic datasets, allowing out-of-core reading and writing of BED, VCF, and BAM files to prevent memory overflow during analysis.

What are the limitations of using DataFusion for genomic interval arithmetic?

DataFusion handles genomic interval arithmetic efficiently, but limitations depend on the complexity of SQL-based queries and the structural parsing of specialized bioinformatics formats like GFF.