Skip to Content
Python APIUtilitiesverify_positions

verify_positions

chr3d.utils.verify_positions( bedpe_df: pl.DataFrame, bedpedb_path: str, chromsizes_path: str, n_samples: int = 20, ) -> bool

Verify that bedpedb entries match BEDPE coordinates.

bedpedb stores coordinates as global genome offsets. Re-derives the offset from the chromsizes file and compares to a random sample.

Parameters

ParameterTypeDescription
bedpe_dfpl.DataFramePolars DataFrame with BEDPE data
bedpedb_pathstrPath to bedpedb file
chromsizes_pathstrPath to chromosome sizes file
n_samplesintNumber of random entries to verify (default: 20)

Returns:

boolTrue if all samples match, False otherwise.

Last updated on