gunz_cm.reconstructions.third_party package

Submodules

gunz_cm.reconstructions.third_party.flamingo module

Module.

Examples

gunz_cm.reconstructions.third_party.flamingo.comp_flamingo_obj_perf(region1: str, resolution: int, balancing: str, input_fpath: str, points_fpath: str, region2: str | None = None) dict[source]

Computes the performance metrics (Spearman and Pearson correlation) for Euclidean distances predicted by FLAMINGO.

  • The function loads contact map data and point coordinates, filters out invalid data, and computes the Euclidean distance matrix.

  • If region2 is not provided, the function assumes the same region for both comparisons.

  • The function raises a FileNotFoundError if the points file does not exist.

region1str

The first genomic region to analyze.

resolutionint

The resolution of the genomic data.

balancingstr

The balancing method to use for the contact map data.

input_fpathstr

The file path to the input contact map data.

points_fpathstr

The file path to the points data.

region2t.Optional[str], optional

The second genomic region to analyze, by default None.

dict

A dictionary containing the region, Spearman correlation, Pearson correlation, and the ratio of valid data.

Examples

gunz_cm.reconstructions.third_party.h3dg module

gunz_cm.reconstructions.third_party.shneigh module

gunz_cm.reconstructions.third_party.superrec module

Module contents