polars-bio

Perform genomic interval operations and stream BED/VCF/BAM/GFF files with Polars and DataFusion.

94|11|Updated Mar 26, 2026
One-click install
npx skills add https://github.com/swaruplab/operon --skill polars-bio-swaruplab
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: polars-bio
Source: https://github.com/swaruplab/operon/tree/main/src-tauri/protocols/polars-bio
Command: npx skills add https://github.com/swaruplab/operon --skill polars-bio-swaruplab

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Genomics data processing often suffers from slow interval arithmetic and limited scalable I/O; polars-bio provides a high-performance, streaming-enabled solution built on Polars DataFrames and DataFusion to accelerate analysis on large genomic datasets.

Core Features & Use Cases

  • High-performance genomic interval operations (overlap, nearest, merge, coverage, complement, subtract) on large datasets.
  • Efficient I/O for BED/VCF/BAM/GFF formats with cloud storage support and streaming capabilities.
  • SQL-based data processing by registering files as SQL tables and querying with DataFusion.

Quick Start

Use polars-bio to perform a basic genomic interval overlap between two datasets and collect the results.

Frequently Asked Questions about polars-bio

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

FAQPage Schema
How do I perform high-performance genomic interval overlap operations on large datasets?

Genomic interval overlap on large datasets is accelerated by using Polars DataFrames and DataFusion streaming. This enables scalable analysis by applying functional API operations directly to genomic coordinates without loading everything into memory.

Can I read and write BED, VCF, BAM, and GFF files with cloud storage streaming?

Yes, BED, VCF, BAM, and GFF file formats support efficient I/O with cloud storage and streaming capabilities. This allows reading and writing large genomic datasets directly from cloud locations using DataFusion streaming.

What is the best way to run SQL queries on genomic interval data?

The best way to run SQL queries on genomic data is by registering files as SQL tables and querying with DataFusion. This approach leverages DataFusion streaming to process large genomic datasets efficiently.

Does Polars support native bioinformatics interval operations like nearest, merge, and coverage?

Polars itself does not, but polars-bio extends it with high-performance genomic interval operations including nearest, merge, coverage, complement, and subtract. These operations integrate with LazyFrame method chaining and DataFusion streaming.

Why is my genomic interval arithmetic too slow for large-scale bioinformatics workflows?

Genomic interval arithmetic is often slow due to limited scalable I/O and inefficient processing. Using a streaming-enabled solution built on Polars DataFrames and DataFusion accelerates interval analytics on large genomic datasets.