polars-bio

Perform genomic interval operations and bioinformatics file I/O in Polars DataFrames.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill helps you perform high-throughput genomic interval analytics and bioinformatics file I/O efficiently, without getting blocked by slow Python/pandas pipelines.

Core Features & Use Cases

  • Genomic interval operations: overlap, nearest, merge, cluster, coverage, complement, and subtract on interval DataFrames.
  • Bioinformatics format I/O: read/scan/write/sink common formats including BED, VCF, BAM, CRAM, GFF/GTF, FASTA, and FASTQ, with support for cloud paths.
  • Streaming + SQL-ready workflows: process large datasets out-of-core using DataFusion-backed lazy execution and query data with DataFusion SQL.

Quick Start

Run polars-bio to find overlaps between two interval datasets by processing them lazily for scalability.

Frequently Asked Questions about polars-bio

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

FAQPage Schema
How do I find overlapping genomic intervals in large BED files?

To find overlapping genomic intervals in large BED files, you can use lazy DataFrame execution to process datasets out-of-core. This approach computes overlaps, nearest features, and coverage efficiently without loading entire datasets into memory.

Can I read BAM and CRAM files directly from cloud storage into a Polars DataFrame?

Yes, you can read and scan bioinformatics formats including BAM, CRAM, VCF, and BED directly from local or cloud paths into Polars DataFrames. This enables scalable file I/O for genomic interval analytics workflows.

Does Polars support streaming execution for bioinformatics data processing?

Polars supports streaming execution for bioinformatics data when using a DataFusion-backed lazy execution model. This allows you to process large genomic datasets out-of-core and return LazyFrame results suitable for .collect().

What is the best way to run SQL queries over genomic interval tables?

Running SQL queries over genomic interval tables is best handled by registering interval DataFrames with DataFusion SQL. This integrates overlap, merge, and coverage computations directly into your SQL-based data analysis workflows.

How do I perform merge and cluster operations on genomic intervals?

Merge and cluster operations on genomic intervals are performed by applying interval arithmetic directly within Polars workflows. You can configure interval column conventions to compute merges, clusters, complements, and subtractions efficiently.

What are the limitations of using interval arithmetic for high-throughput genomics?

Interval arithmetic for high-throughput genomics requires a Polars-DataFusion based environment and returns LazyFrame results, meaning you must call .collect() to materialize outputs. Proper configuration of interval column conventions is necessary to ensure accurate overlap and coverage computations.