Skip to content

Commit

Permalink
Merge pull request #13 from bebatut/biotool-extraction-fix
Browse files Browse the repository at this point in the history
Fix biotools extraction in macro
  • Loading branch information
paulzierep authored Oct 31, 2023
2 parents a587c19 + c5a1df0 commit 171cf89
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bin/extract_galaxy_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,11 @@ def get_tool_metadata(tool, repo, ts_cat, excluded_tools, keep_tools):
if 'name' in child.attrib:
if child.attrib['name'] == '@TOOL_VERSION@' or child.attrib['name'] == '@VERSION@':
metadata['Galaxy wrapper version'] = child.text
elif child.attrib['name'] == 'bio_tools':
metadata['bio.tool id'] = get_biotools(child)
elif child.attrib['name'] == 'requirements':
metadata['Conda id'] = get_conda_package(child)
biotools = get_biotools(child)
if biotools is not None:
metadata['bio.tool id'] = biotools

# parse XML file and get meta data from there, also tool ids
for file in repo.get_contents(tool.path):
Expand Down

0 comments on commit 171cf89

Please sign in to comment.