polars-bio

Process genomic intervals with SQL and bioinformatics file I/O.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/ogngnaoh/scientific-agent-skills --skill polars-bio-ogngnaoh
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: polars-bio
Source: https://github.com/ogngnaoh/scientific-agent-skills/tree/main/scientific-agent-skills/skills/polars-bio
Command: npx skills add https://github.com/ogngnaoh/scientific-agent-skills --skill polars-bio-ogngnaoh

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

polars-bio addresses the need for fast, scalable, and efficient genomic interval processing, significantly reducing computational time and resource usage compared to traditional Python-based tools.

Core Features & Use Cases

  • Genomic Range Arithmetic: Enables operations like overlap, nearest, merge, and coverage analyses to interpret genomic intervals accurately and rapidly.
  • Bioinformatics File I/O: Supports reading and writing common formats such as BED, VCF, BAM, CRAM, GFF, GTF, FASTA, FASTQ, and SAM, facilitating large-scale genomic data workflows.
  • SQL Data Integration: Allows querying bioinformatics files with specialized SQL statements for flexible and powerful data exploration across large datasets.
  • Streaming & Out-of-Core: Handles datasets larger than memory via lazy evaluation and DataFusion's streaming capabilities, making analyses scalable to whole genomes.
  • Use Case Example: Efficiently computing read coverage across a 30x human whole genome dataset or performing large-scale interval overlaps for variant annotation.

Quick Start

Use polars-bio to load a VCF file, perform an overlap analysis with a BED file, and retrieve the results as a DataFrame without heavy memory usage.

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 analysis on large VCF and BED files?▼

Genomic interval overlap analysis on large VCF and BED files is accelerated using a Rust-based backend with DataFusion execution. This approach provides high-performance range arithmetic and retrieves results as DataFrames without heavy memory usage.

Can I query bioinformatics files with SQL when analyzing whole genome datasets?▼

Querying bioinformatics files with SQL is fully supported for analyzing whole genome datasets. Specialized SQL statements allow flexible and powerful data exploration directly across large-scale genomic formats like VCF and GTF.

What is the best way to process genomic data that exceeds available system memory?▼

Processing genomic data that exceeds system memory is handled via streaming and out-of-core execution. Lazy evaluation and DataFusion's streaming capabilities make analyses scalable to whole genomes without running out of memory.

Does polars-bio support reading and writing common bioinformatics formats like BAM and FASTA?▼

Reading and writing common bioinformatics formats including BAM, CRAM, FASTA, FASTQ, VCF, BED, GFF, GTF, and SAM is natively supported. This facilitates large-scale genomic data workflows within high-speed DataFrames.

How do I compute read coverage efficiently across a 30x human whole genome dataset?▼

Computing read coverage across a 30x human whole genome dataset is efficient using high-speed DataFrames. The Rust-based backend significantly reduces computational time and resource usage compared to traditional Python-based tools.

What are the limitations of traditional Python-based tools for genomic interval operations?▼

Traditional Python-based tools for genomic interval operations often face significant computational time and resource constraints. Using a Rust-based backend with efficient DataFusion execution overcomes these limitations to speed up analysis workflows.