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)