polars-bio

Process genomic interval data and bioinformatics file formats with Polars.

Updated May 8, 2026
One-click install
npx skills add https://github.com/Zeyuyang-0420/bio-ai-research-skills --skill polars-bio-zeyuyang-0420
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: polars-bio
Source: https://github.com/Zeyuyang-0420/bio-ai-research-skills/tree/main/categories/bioinformatics-genomics/polars-bio
Command: npx skills add https://github.com/Zeyuyang-0420/bio-ai-research-skills --skill polars-bio-zeyuyang-0420

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill simplifies and accelerates genomic data processing by utilizing the Polars data frame library, providing powerful tools for genomic interval operations and file I/O.

Core Features & Use Cases

  • Genomic Interval Operations: Perform overlap, nearest, merge, coverage, complement, and subtract operations on genomic intervals.
  • File I/O: Read and write common bioinformatics file formats like BED, VCF, BAM, CRAM, GFF/GTF, FASTA, and FASTQ.
  • Use Case: Process and analyze large-scale genomic datasets, such as RNA-seq or single-cell data, with high-performance interval arithmetic and file handling.

Quick Start

To install and use polars-bio, execute the following command:

pip install polars-bio

To perform an overlap operation on two BED files, use:

import polars_bio as pb
df1 = pb.read_bed("file1.bed")
df2 = pb.read_bed("file2.bed")
result = pb.overlap(df1, df2)
result.collect()

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 on BED files using Python?

Polars-bio reads BED files into DataFrames and provides functions like overlap, nearest, merge, coverage, complement, and subtract to perform genomic interval arithmetic efficiently.

Can I read and write common bioinformatics file formats like VCF, BAM, and FASTA with Polars?

Yes, Polars-bio supports reading and writing VCF, BAM, CRAM, GFF/GTF, FASTA, and FASTQ formats, enabling efficient file I/O for genomic data processing within Polars DataFrames.

What is the best way to handle large-scale RNA-seq or single-cell genomic data in Python?

Using Polars DataFrames for genomic interval operations and file I/O accelerates processing of large-scale RNA-seq or single-cell genomic datasets, providing high-performance data manipulation.

Do I need to install Pandas and Arrow to use Polars for genomic data processing?

Yes, Polars-bio requires Polars, Pandas, and Arrow as dependencies to enable efficient genomic data manipulation, interval arithmetic, and bioinformatics file format handling.

How do I find the nearest genomic interval to a specific region in a BED file?

Load BED files into Polars DataFrames and apply the nearest genomic interval operation to identify the closest genomic regions to your target intervals efficiently.

Does Polars support coverage and subtract operations for genomic interval analysis?

Polars-bio supports coverage and subtract operations alongside overlap, nearest, merge, and complement, allowing comprehensive genomic interval arithmetic directly within Polars DataFrames.