polars-bio

Process genomic interval data and bioinformatics files in Polars.

Updated Jul 1, 2026
One-click install
npx skills add https://github.com/jasrajtulsi/GRAD-SCOPE --skill polars-bio-jasrajtulsi
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: polars-bio
Source: https://github.com/jasrajtulsi/GRAD-SCOPE/tree/main/.claude/skills/polars-bio
Command: npx skills add https://github.com/jasrajtulsi/GRAD-SCOPE --skill polars-bio-jasrajtulsi

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill removes the friction of working with genomic interval data and bioinformatics files by giving you fast, Polars-native tools for overlap analysis, nearest-neighbor lookup, interval merging, coverage, subtraction, complement, and depth calculation.

Core Features & Use Cases

  • Genomic interval operations: Compare BED-like interval sets with overlap, count_overlaps, nearest, merge, cluster, coverage, complement, and subtract.
  • Bioinformatics file I/O: Read, scan, write, and stream common formats such as BED, VCF, BAM, CRAM, GFF, GTF, FASTA, FASTQ, SAM, and Hi-C pairs.
  • SQL and large-scale workflows: Register datasets as SQL tables, query them with DataFusion SQL, and handle large files with lazy execution, streaming, coordinate metadata, and cloud storage support.
  • Use case: A computational biologist can load two peak sets, find overlaps, rank the nearest regulatory regions, and summarize coverage without leaving the Polars ecosystem.

Quick Start

Ask the assistant to use polars-bio to load your genomic files, run the interval or file I/O operation you need, and return the result as a Polars DataFrame.

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 in Polars?▼

Genomic interval overlap analysis in Polars is performed by loading BED-like interval sets and applying operations such as overlap, count_overlaps, nearest, merge, and subtract directly on the DataFrames.

Can I read and stream VCF and BAM files for bioinformatics workflows in Polars?▼

Yes, you can read, scan, write, and stream common bioinformatics files including VCF, BAM, CRAM, BED, GFF, GTF, FASTA, FASTQ, and SAM using Polars-native lazy execution and optional cloud I/O.

What is the best way to query large genomic datasets with SQL?▼

Querying large genomic datasets with SQL is done by registering interval DataFrames as SQL tables and executing DataFusion SQL queries, leveraging LazyFrame-based execution and streaming for large-scale workflows.

Does Polars support coverage and depth calculation for BED files?▼

Polars supports coverage, complement, subtract, and depth calculation for BED files and other genomic interval sets, allowing you to summarize interval properties without leaving the Polars ecosystem.

How do I find the nearest regulatory regions using genomic intervals?▼

Finding nearest regulatory regions uses the nearest-neighbor lookup operation on genomic interval sets, enabling you to rank proximal regions by distance directly within Polars DataFrames.

Do I need LazyFrame execution for large-scale bioinformatics file processing?▼

Yes, LazyFrame-based execution is required for processing large-scale bioinformatics datasets, with optional streaming and coordinate metadata handling to efficiently manage large files and cloud storage inputs.