# HG changeset patch # User peterjc # Date 1540290364 14400 # Node ID a6373b98096ad301e205b055d14d39c240c7e49b # Parent 0cef6172d6f145a612581b3231810b42021b7694 planemo upload for repository https://github.com/peterjc/galaxy_blast/tree/master/tools/blastxml_to_top_descr commit ed6325d44993c65dd9fbab02902ede0a9c0eeb80-dirty diff -r 0cef6172d6f1 -r a6373b98096a tools/blastxml_to_top_descr/blastxml_to_top_descr.py --- a/tools/blastxml_to_top_descr/blastxml_to_top_descr.py Tue Jun 05 11:41:31 2018 -0400 +++ b/tools/blastxml_to_top_descr/blastxml_to_top_descr.py Tue Oct 23 06:26:04 2018 -0400 @@ -145,7 +145,7 @@ context = iter(context) # get the root element try: - event, root = context.next() + event, root = next(context) except Exception: with open(in_file) as handle: header = handle.read(100) @@ -238,6 +238,7 @@ def best_hits(descriptions, topN): + """Truncate given descriptions list to at most N entries.""" if len(descriptions) < topN: return descriptions + [""] * (topN - len(descriptions)) else: diff -r 0cef6172d6f1 -r a6373b98096a tools/blastxml_to_top_descr/repository_dependencies.xml --- a/tools/blastxml_to_top_descr/repository_dependencies.xml Tue Jun 05 11:41:31 2018 -0400 +++ b/tools/blastxml_to_top_descr/repository_dependencies.xml Tue Oct 23 06:26:04 2018 -0400 @@ -1,4 +1,4 @@ - +