From 1072f07de9b4b70788df8329ba18643fb6e01804 Mon Sep 17 00:00:00 2001 From: Lucille Delisle Date: Fri, 3 Nov 2023 08:35:06 +0100 Subject: [PATCH] Fix maf_thread_for_species.py --- tools/maf/maf_thread_for_species.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tools/maf/maf_thread_for_species.py b/tools/maf/maf_thread_for_species.py index 6da4c522b9d8..67a533947902 100644 --- a/tools/maf/maf_thread_for_species.py +++ b/tools/maf/maf_thread_for_species.py @@ -14,10 +14,7 @@ import bx.align.maf from bx.align.tools.fuse import FusingAlignmentWriter -from bx.align.tools.thread import ( - get_components_for_species, - remove_all_gap_columns, -) +from bx.align.tools.thread import get_components_for_species def main(): @@ -41,9 +38,9 @@ def main(): if species != ["None"]: new_components = get_components_for_species(m, species) if new_components: - remove_all_gap_columns(new_components) m.components = new_components m.score = 0.0 + m.remove_all_gap_columns() maf_writer.write(m) except Exception as e: print("Error steping through MAF File: %s" % e, file=sys.stderr)