polars-bio

Perform genomic interval arithmetic and bioinformatics I/O within Polars DataFrames.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Polars-bio enables fast, scalable genomic interval arithmetic and high-performance bioinformatics I/O directly inside Polars DataFrames, eliminating bottlenecks in interval analysis and large-file processing.

Core Features & Use Cases

  • Genomic interval operations: overlap, nearest, merge, coverage, complement, subtract, cluster to accelerate interval analysis on large genomes.
  • Bioinformatics file I/O: read/scan/write across BED, VCF, BAM, CRAM, GFF/GTF, FASTA, FASTQ with cloud support and streaming.
  • SQL/DataFusion integration: register files as tables and query with SQL for flexible workflows.

Quick Start

Install polars-bio and run a minimal two-file overlap to observe lazy evaluation and streaming in action.

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 overlap operations within a Polars DataFrame?

You can perform genomic interval overlap operations within a Polars DataFrame by applying native interval arithmetic functions directly to genomic coordinates. This approach eliminates processing bottlenecks by executing overlap, nearest, merge, coverage, complement, subtract, and cluster operations using lazy evaluation.

Can I read and write VCF, BAM, and CRAM files directly in Polars with cloud support?

You can read and write VCF, BAM, and CRAM files directly in Polars with cloud support and optional streaming. The tool handles high-performance bioinformatics file I/O across BED, GFF/GTF, FASTA, and FASTQ formats to process large-scale genomic files efficiently.

How do I query genomic intervals using SQL through DataFusion integration?

You can query genomic intervals using SQL through DataFusion integration by registering bioinformatics files as tables. This enables flexible workflows where you run standard SQL queries directly against genomic interval data loaded from supported file formats.

What is the best way to scale large-scale genome analyses for interval joins?

The best way to scale large-scale genome analyses for interval joins is using Polars DataFrames with built-in streaming and lazy evaluation. This architecture processes large genomic datasets efficiently by executing eight distinct interval operations directly within the DataFrame environment.

Does Polars support fast bioinformatics interval operations without external bioinformatics libraries?

Polars supports fast bioinformatics interval operations without external libraries by embedding genomic interval arithmetic directly into DataFrames. It implements interval operations, two-input file I/O, and SQL integration natively, bypassing the need for separate specialized bioinformatics processing tools.

When should I use streaming for genomic file I/O in Polars DataFrames?

You should use optional streaming for genomic file I/O in Polars DataFrames when processing large-scale genome analyses that exceed available memory. Streaming enables high-performance reading, scanning, and writing of massive BED, VCF, and BAM files directly from cloud storage.