Skip to content

Commit

Permalink
tool id
Browse files Browse the repository at this point in the history
  • Loading branch information
dsavchenko committed Dec 20, 2023
1 parent a3291f0 commit 7068a1c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion nb2workflow/galaxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,7 @@ def _read_help_file(filepath):
def to_galaxy(input_path,
toolname,
out_dir,
tool_id = None,
tool_version = '0.1.0+galaxy0',
requirements_file = None,
conda_environment_file = None,
Expand All @@ -462,8 +463,13 @@ def to_galaxy(input_path,

nbas = find_notebooks(input_path)

if tool_id is not None:
tid = tool_id
else:
tid = re.sub(r'[^a-z0-9_]', '_', toolname.lower())

tool_root = ET.Element('tool',
id=toolname.replace(' ', '_'),
id=tid,
name=toolname,
version=tool_version,
profile='23.0')
Expand Down

0 comments on commit 7068a1c

Please sign in to comment.