Skip to content

Commit

Permalink
Merge pull request galaxyproject#16971 from lldelisle/patch-3
Browse files Browse the repository at this point in the history
Fix maf_thread_for_species.py
  • Loading branch information
mvdbeek authored Nov 8, 2023
2 parents b7fc2e3 + 1072f07 commit 2f56125
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tools/maf/maf_thread_for_species.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand All @@ -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)
Expand Down

0 comments on commit 2f56125

Please sign in to comment.