API reference
The polars-bio API reference is organized like the Features guide:
- Reading files: eager (
read_*), lazy (scan_*), and describe (describe_*) access to bioinformatic formats from local and cloud storage. - Genomic operations: interval (range) operations — overlap, nearest, coverage, merge, cluster, complement, subtract — and pileup per-base depth.
- Writing files: eager (
write_*) and streaming (sink_*) output to bioinformatic formats. - SQL interface: register datasets as tables and query them with the SQL interface powered by Apache DataFusion.
- Auxiliary: DataFrame metadata, session options, and error types.
There are 2 ways of using polars-bio API:
- using
polars_biomodule
Example
- directly on a Polars LazyFrame under a registered
pbnamespace
Example
Tip
- Not all are available in both ways.
- You can of course use both ways in the same script.