From 56885515d9310e4793b1e70373cba8db457c9c45 Mon Sep 17 00:00:00 2001 From: Catarina Loureiro Date: Thu, 5 Dec 2024 11:08:18 +0100 Subject: [PATCH] only add edges with distance < 1 to the full network table --- big_scape/output/legacy_output.py | 1 + 1 file changed, 1 insertion(+) diff --git a/big_scape/output/legacy_output.py b/big_scape/output/legacy_output.py index e5a7c050..d34fee8f 100644 --- a/big_scape/output/legacy_output.py +++ b/big_scape/output/legacy_output.py @@ -638,6 +638,7 @@ def write_network_file( .where(edge_params_table.c.weights.in_(incl_weights)) .where(edge_params_table.c.alignment_mode == aln_mode) .where(edge_params_table.c.extend_strategy == ext_strat) + .where(distance_table.c.distance < 1) ) if cutoff is not None: