From 4c81a53e5c6ff820fe0b65c40decdf811759890f Mon Sep 17 00:00:00 2001 From: <> Date: Tue, 31 Dec 2024 05:42:51 +0000 Subject: [PATCH] Deployed 5243103 with MkDocs version: 1.6.1 --- .nojekyll | 0 404.html | 671 ++ api/index.html | 1640 ++++ assets/_mkdocstrings.css | 143 + assets/images/favicon.png | Bin 0 -> 1870 bytes assets/javascripts/bundle.88dd0f4e.min.js | 16 + assets/javascripts/bundle.88dd0f4e.min.js.map | 7 + assets/javascripts/lunr/min/lunr.ar.min.js | 1 + assets/javascripts/lunr/min/lunr.da.min.js | 18 + assets/javascripts/lunr/min/lunr.de.min.js | 18 + assets/javascripts/lunr/min/lunr.du.min.js | 18 + assets/javascripts/lunr/min/lunr.el.min.js | 1 + assets/javascripts/lunr/min/lunr.es.min.js | 18 + assets/javascripts/lunr/min/lunr.fi.min.js | 18 + assets/javascripts/lunr/min/lunr.fr.min.js | 18 + assets/javascripts/lunr/min/lunr.he.min.js | 1 + assets/javascripts/lunr/min/lunr.hi.min.js | 1 + assets/javascripts/lunr/min/lunr.hu.min.js | 18 + assets/javascripts/lunr/min/lunr.hy.min.js | 1 + assets/javascripts/lunr/min/lunr.it.min.js | 18 + assets/javascripts/lunr/min/lunr.ja.min.js | 1 + assets/javascripts/lunr/min/lunr.jp.min.js | 1 + assets/javascripts/lunr/min/lunr.kn.min.js | 1 + assets/javascripts/lunr/min/lunr.ko.min.js | 1 + assets/javascripts/lunr/min/lunr.multi.min.js | 1 + assets/javascripts/lunr/min/lunr.nl.min.js | 18 + assets/javascripts/lunr/min/lunr.no.min.js | 18 + assets/javascripts/lunr/min/lunr.pt.min.js | 18 + assets/javascripts/lunr/min/lunr.ro.min.js | 18 + assets/javascripts/lunr/min/lunr.ru.min.js | 18 + assets/javascripts/lunr/min/lunr.sa.min.js | 1 + .../lunr/min/lunr.stemmer.support.min.js | 1 + assets/javascripts/lunr/min/lunr.sv.min.js | 18 + assets/javascripts/lunr/min/lunr.ta.min.js | 1 + assets/javascripts/lunr/min/lunr.te.min.js | 1 + assets/javascripts/lunr/min/lunr.th.min.js | 1 + assets/javascripts/lunr/min/lunr.tr.min.js | 18 + assets/javascripts/lunr/min/lunr.vi.min.js | 1 + assets/javascripts/lunr/min/lunr.zh.min.js | 1 + assets/javascripts/lunr/tinyseg.js | 206 + assets/javascripts/lunr/wordcut.js | 6708 +++++++++++++++++ .../workers/search.6ce7567c.min.js | 42 + .../workers/search.6ce7567c.min.js.map | 7 + assets/logo-large.png | Bin 0 -> 296164 bytes assets/logo.png | Bin 0 -> 193823 bytes assets/results-nearest-0.1.1.png | Bin 0 -> 27517 bytes assets/results-overlap-0.1.1.png | Bin 0 -> 32435 bytes assets/stylesheets/main.6f8fc17f.min.css | 1 + assets/stylesheets/main.6f8fc17f.min.css.map | 1 + assets/stylesheets/palette.06af60db.min.css | 1 + .../stylesheets/palette.06af60db.min.css.map | 1 + features/index.html | 1045 +++ index.html | 747 ++ notebooks/tutorial/index.html | 1876 +++++ objects.inv | Bin 0 -> 222 bytes performance/index.html | 1102 +++ quickstart/index.html | 780 ++ requirements.txt | 1 + search/search_index.json | 1 + sitemap.xml | 27 + sitemap.xml.gz | Bin 0 -> 243 bytes versions.json | 9 + 62 files changed, 15319 insertions(+) create mode 100644 .nojekyll create mode 100644 404.html create mode 100644 api/index.html create mode 100644 assets/_mkdocstrings.css create mode 100644 assets/images/favicon.png create mode 100644 assets/javascripts/bundle.88dd0f4e.min.js create mode 100644 assets/javascripts/bundle.88dd0f4e.min.js.map create mode 100644 assets/javascripts/lunr/min/lunr.ar.min.js create mode 100644 assets/javascripts/lunr/min/lunr.da.min.js create mode 100644 assets/javascripts/lunr/min/lunr.de.min.js create mode 100644 assets/javascripts/lunr/min/lunr.du.min.js create mode 100644 assets/javascripts/lunr/min/lunr.el.min.js create mode 100644 assets/javascripts/lunr/min/lunr.es.min.js create mode 100644 assets/javascripts/lunr/min/lunr.fi.min.js create mode 100644 assets/javascripts/lunr/min/lunr.fr.min.js create mode 100644 assets/javascripts/lunr/min/lunr.he.min.js create mode 100644 assets/javascripts/lunr/min/lunr.hi.min.js create mode 100644 assets/javascripts/lunr/min/lunr.hu.min.js create mode 100644 assets/javascripts/lunr/min/lunr.hy.min.js create mode 100644 assets/javascripts/lunr/min/lunr.it.min.js create mode 100644 assets/javascripts/lunr/min/lunr.ja.min.js create mode 100644 assets/javascripts/lunr/min/lunr.jp.min.js create mode 100644 assets/javascripts/lunr/min/lunr.kn.min.js create mode 100644 assets/javascripts/lunr/min/lunr.ko.min.js create mode 100644 assets/javascripts/lunr/min/lunr.multi.min.js create mode 100644 assets/javascripts/lunr/min/lunr.nl.min.js create mode 100644 assets/javascripts/lunr/min/lunr.no.min.js create mode 100644 assets/javascripts/lunr/min/lunr.pt.min.js create mode 100644 assets/javascripts/lunr/min/lunr.ro.min.js create mode 100644 assets/javascripts/lunr/min/lunr.ru.min.js create mode 100644 assets/javascripts/lunr/min/lunr.sa.min.js create mode 100644 assets/javascripts/lunr/min/lunr.stemmer.support.min.js create mode 100644 assets/javascripts/lunr/min/lunr.sv.min.js create mode 100644 assets/javascripts/lunr/min/lunr.ta.min.js create mode 100644 assets/javascripts/lunr/min/lunr.te.min.js create mode 100644 assets/javascripts/lunr/min/lunr.th.min.js create mode 100644 assets/javascripts/lunr/min/lunr.tr.min.js create mode 100644 assets/javascripts/lunr/min/lunr.vi.min.js create mode 100644 assets/javascripts/lunr/min/lunr.zh.min.js create mode 100644 assets/javascripts/lunr/tinyseg.js create mode 100644 assets/javascripts/lunr/wordcut.js create mode 100644 assets/javascripts/workers/search.6ce7567c.min.js create mode 100644 assets/javascripts/workers/search.6ce7567c.min.js.map create mode 100644 assets/logo-large.png create mode 100644 assets/logo.png create mode 100644 assets/results-nearest-0.1.1.png create mode 100644 assets/results-overlap-0.1.1.png create mode 100644 assets/stylesheets/main.6f8fc17f.min.css create mode 100644 assets/stylesheets/main.6f8fc17f.min.css.map create mode 100644 assets/stylesheets/palette.06af60db.min.css create mode 100644 assets/stylesheets/palette.06af60db.min.css.map create mode 100644 features/index.html create mode 100644 index.html create mode 100644 notebooks/tutorial/index.html create mode 100644 objects.inv create mode 100644 performance/index.html create mode 100644 quickstart/index.html create mode 100644 requirements.txt create mode 100644 search/search_index.json create mode 100644 sitemap.xml create mode 100644 sitemap.xml.gz create mode 100644 versions.json diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 0000000..e69de29 diff --git a/404.html b/404.html new file mode 100644 index 0000000..f2158aa --- /dev/null +++ b/404.html @@ -0,0 +1,671 @@ + + + +
+ + + + + + + + + + + + + + +nearest(df1, df2, overlap_filter=FilterOp.Strict, suffixes=('_1', '_2'), on_cols=None, col1=None, col2=None, output_type='polars.LazyFrame')
+
+Find pairs of overlapping genomic intervals. +Bioframe inspired API.
+ + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
+ df1
+ |
+
+ Union[str, DataFrame, LazyFrame, DataFrame]
+ |
+
+
+
+ Can be a path to a file, a polars DataFrame, or a pandas DataFrame. CSV with a header and Parquet are supported. + |
+ + required + | +
+ df2
+ |
+
+ Union[str, DataFrame, LazyFrame, DataFrame]
+ |
+
+
+
+ Can be a path to a file, a polars DataFrame, or a pandas DataFrame. CSV with a header and Parquet are supported. + |
+ + required + | +
+ overlap_filter
+ |
+
+ FilterOp
+ |
+
+
+
+ FilterOp, optional. The type of overlap to consider(Weak or Strict). default is FilterOp.Weak. + |
+
+ Strict
+ |
+
+ col1
+ |
+
+ Union[list[str], None]
+ |
+
+
+
+ The names of columns containing the chromosome, start and end of the +genomic intervals, provided separately for each set. The default +values are 'chrom', 'start', 'end'. + |
+
+ None
+ |
+
+ col2
+ |
+
+ Union[list[str], None]
+ |
+
+
+
+ The names of columns containing the chromosome, start and end of the +genomic intervals, provided separately for each set. The default +values are 'chrom', 'start', 'end'. + |
+
+ None
+ |
+
+ suffixes
+ |
+
+ tuple[str, str]
+ |
+
+
+
+ Suffixes for the columns of the two overlapped sets. + |
+
+ ('_1', '_2')
+ |
+
+ on_cols
+ |
+
+ Union[list[str], None]
+ |
+
+
+
+ List of additional column names to join on. default is None. + |
+
+ None
+ |
+
+ output_type
+ |
+
+ str
+ |
+
+
+
+ Type of the output. default is "polars.LazyFrame", "polars.DataFrame", or "pandas.DataFrame" are also supported. + |
+
+ 'polars.LazyFrame'
+ |
+
Returns:
+Type | +Description | +
---|---|
+ Union[LazyFrame, DataFrame, DataFrame]
+ |
+
+
+
+ polars.LazyFrame or polars.DataFrame or pandas.DataFrame of the overlapping intervals. + |
+
The default output format, i.e. LazyFrame, is recommended for large datasets as it supports output streaming and lazy evaluation. +This enables efficient processing of large datasets without loading the entire output dataset into memory.
+Example:
+ + +Support for col1, col2, and on_cols and suffixes parameters.
+polars_bio/range_op.py
overlap(df1, df2, how='inner', overlap_filter=FilterOp.Strict, suffixes=('_1', '_2'), on_cols=None, col1=None, col2=None, output_type='polars.LazyFrame')
+
+Find pairs of overlapping genomic intervals. +Bioframe inspired API.
+ + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
+ df1
+ |
+
+ Union[str, DataFrame, LazyFrame, DataFrame]
+ |
+
+
+
+ Can be a path to a file, a polars DataFrame, or a pandas DataFrame. CSV with a header and Parquet are supported. + |
+ + required + | +
+ df2
+ |
+
+ Union[str, DataFrame, LazyFrame, DataFrame]
+ |
+
+
+
+ Can be a path to a file, a polars DataFrame, or a pandas DataFrame. CSV with a header and Parquet are supported. + |
+ + required + | +
+ how
+ |
+
+ str
+ |
+
+
+
+ How to handle the overlaps on the two dataframes. inner: use intersection of the set of intervals from df1 and df2, optional. + |
+
+ 'inner'
+ |
+
+ overlap_filter
+ |
+
+ FilterOp
+ |
+
+
+
+ FilterOp, optional. The type of overlap to consider(Weak or Strict). default is FilterOp.Weak. + |
+
+ Strict
+ |
+
+ col1
+ |
+
+ Union[list[str], None]
+ |
+
+
+
+ The names of columns containing the chromosome, start and end of the +genomic intervals, provided separately for each set. The default +values are 'chrom', 'start', 'end'. + |
+
+ None
+ |
+
+ col2
+ |
+
+ Union[list[str], None]
+ |
+
+
+
+ The names of columns containing the chromosome, start and end of the +genomic intervals, provided separately for each set. The default +values are 'chrom', 'start', 'end'. + |
+
+ None
+ |
+
+ suffixes
+ |
+
+ tuple[str, str]
+ |
+
+
+
+ Suffixes for the columns of the two overlapped sets. + |
+
+ ('_1', '_2')
+ |
+
+ on_cols
+ |
+ + | +
+
+
+ List of additional column names to join on. default is None. + |
+
+ None
+ |
+
+ output_type
+ |
+
+ str
+ |
+
+
+
+ Type of the output. default is "polars.LazyFrame", "polars.DataFrame", or "pandas.DataFrame" are also supported. + |
+
+ 'polars.LazyFrame'
+ |
+
Returns:
+Type | +Description | +
---|---|
+ Union[LazyFrame, DataFrame, DataFrame]
+ |
+
+
+
+ polars.LazyFrame or polars.DataFrame or pandas.DataFrame of the overlapping intervals. + |
+
The default output format, i.e. LazyFrame, is recommended for large datasets as it supports output streaming and lazy evaluation. +This enables efficient processing of large datasets without loading the entire output dataset into memory.
+import polars_bio as pb
+import pandas as pd
+
+df1 = pd.DataFrame([
+ ['chr1', 1, 5],
+ ['chr1', 3, 8],
+ ['chr1', 8, 10],
+ ['chr1', 12, 14]],
+columns=['chrom', 'start', 'end']
+)
+
+df2 = pd.DataFrame(
+[['chr1', 4, 8],
+ ['chr1', 10, 11]],
+columns=['chrom', 'start', 'end' ]
+)
+overlapping_intervals = pb.overlap(df1, df2, output_type="pandas.DataFrame")
+
+overlapping_intervals
+ chrom_1 start_1 end_1 chrom_2 start_2 end_2
+0 chr1 1 5 chr1 4 8
+1 chr1 3 8 chr1 4 8
+
Support for col1, col2, and on_cols and suffixes parameters.
+polars_bio/range_op.py
18 +19 +20 +21 +22 +23 +24 +25 +26 +27 +28 +29 +30 +31 +32 +33 +34 +35 +36 +37 +38 +39 +40 +41 +42 +43 +44 +45 +46 +47 +48 +49 +50 +51 +52 +53 +54 +55 +56 +57 +58 +59 +60 +61 +62 +63 +64 +65 +66 +67 +68 +69 +70 +71 +72 +73 +74 +75 +76 +77 +78 +79 +80 +81 +82 +83 +84 +85 +86 +87 +88 +89 +90 +91 +92 +93 +94 +95 +96 +97 |
|