polars-bio

Compute genomic interval overlaps, merges, and coverage on Polars DataFrames.

74|5|Updated Dec 10, 2025
One-click install
npx skills add https://github.com/dralkh/seerai --skill polars-bio-dralkh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: polars-bio
Source: https://github.com/dralkh/seerai/tree/main/skills/polars-bio
Command: npx skills add https://github.com/dralkh/seerai --skill polars-bio-dralkh

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill removes the friction of working with genomic intervals and bioinformatics files by turning common research operations into fast, composable Polars workflows.

Core Features & Use Cases

  • Interval arithmetic: Find overlaps, nearest hits, merges, coverage, complements, and subtractive differences across genomic regions.
  • Bioinformatics file I/O: Read, scan, write, and stream BED, VCF, BAM, CRAM, GFF/GTF, FASTA, FASTQ, SAM, and Hi-C pairs data, including cloud URIs.
  • SQL and pileup workflows: Register datasets as tables, query them with SQL, and compute read depth for coverage analysis.
  • Use Case: A researcher can scan a large BAM file, find coverage gaps in target regions, and merge the results into a compact interval set for downstream review.

Quick Start

Ask the assistant to load my genomic files, run the relevant interval or file I/O operation, and return the result as a Polars table.

Frequently Asked Questions about polars-bio

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

FAQPage Schema
How do I find genomic interval overlaps using Polars DataFrames?

To find genomic interval overlaps, you compute them directly on Polars DataFrames using LazyFrames and DataFusion-backed metadata. It supports overlaps, nearest neighbors, merges, coverage, and subtraction across genomic regions.

Can I stream large VCF and BAM files for bioinformatics analysis?

Yes, you can stream large VCF and BAM files. The system supports bioinformatics file I/O with streaming scans, allowing you to process large-scale BED, VCF, BAM, CRAM, and SAM datasets efficiently without loading everything into memory.

Does Polars support reading cloud-native genomic data formats?

Polars supports reading cloud-native genomic data formats via cloud URIs. You can read, scan, and write BED, VCF, BAM, CRAM, GFF/GTF, FASTA, FASTQ, SAM, and Hi-C pairs data directly from cloud storage for research workflows.

How do I calculate pileup depth and coverage gaps in target regions?

To calculate pileup depth and coverage gaps, scan your BAM file and use the interval coverage and complement operations. This computes read depth across target regions and identifies gaps for downstream review.

What is the best way to query genomic intervals with SQL?

The best way to query genomic intervals with SQL is to register your datasets as tables and run SQL queries directly against them. This integrates with DataFusion-backed interval metadata for flexible research analysis.

Are there limitations when subtracting genomic intervals with configurable coordinate systems?

When subtracting genomic intervals, coordinate systems must be explicitly configured to ensure deterministic results. You need Polars LazyFrames and DataFusion-backed interval metadata to correctly compute subtractive differences at scale.