Mercurial > repos > peterjc > blastxml_to_top_descr
changeset 23:a6373b98096a draft
planemo upload for repository https://github.com/peterjc/galaxy_blast/tree/master/tools/blastxml_to_top_descr commit ed6325d44993c65dd9fbab02902ede0a9c0eeb80-dirty
author | peterjc |
---|---|
date | Tue, 23 Oct 2018 06:26:04 -0400 |
parents | 0cef6172d6f1 |
children | c07b61d069ac |
files | tools/blastxml_to_top_descr/blastxml_to_top_descr.py tools/blastxml_to_top_descr/repository_dependencies.xml |
diffstat | 2 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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:
--- 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 @@ <?xml version="1.0"?> <repositories description="Requires BLAST XML and database datatype definitions."> -<repository changeset_revision="63befb860c3e" name="blast_datatypes" owner="devteam" toolshed="https://testtoolshed.g2.bx.psu.edu" /> +<repository changeset_revision="3eada762af11" name="blast_datatypes" owner="devteam" toolshed="https://testtoolshed.g2.bx.psu.edu" /> </repositories>