Skip to content

Commit

Permalink
Add description to data.yaml for Galaxy tools
Browse files Browse the repository at this point in the history
  • Loading branch information
supernord committed Mar 21, 2024
1 parent f607591 commit 72958ff
Show file tree
Hide file tree
Showing 6 changed files with 6,120 additions and 3,714 deletions.
5,888 changes: 4,096 additions & 1,792 deletions data/data.yaml

Large diffs are not rendered by default.

987 changes: 506 additions & 481 deletions docs/2_1_workflows.html

Large diffs are not rendered by default.

987 changes: 506 additions & 481 deletions docs/2_tools.html

Large diffs are not rendered by default.

981 changes: 503 additions & 478 deletions docs/5_attributions.html

Large diffs are not rendered by default.

981 changes: 503 additions & 478 deletions docs/index.html

Large diffs are not rendered by default.

10 changes: 6 additions & 4 deletions finders/toolfinder.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def _query_remote(self):

def _render(self, data):
retval = {}
retval[Dataprovider.FIELD_NAMES.GALAXY_AUSTRALIA_LAUNCH_LINK] = [(d["link"], d["name"], d["version"]) for d in data if "link" in d and "name" in d and "version" in d]
retval[Dataprovider.FIELD_NAMES.GALAXY_AUSTRALIA_LAUNCH_LINK] = [(d["link"], d["name"], d["description"], d["version"]) for d in data if "link" in d and "name" in d and "description" in d and "version" in d]
return retval

def get_alt_ids(self):
Expand Down Expand Up @@ -213,7 +213,7 @@ def _query_remote(self):
import concurrent.futures
def fetch_url(url, biotools_id):
return requests.get(url, timeout=10), biotools_id
with concurrent.futures.ThreadPoolExecutor(max_workers=12) as executor:
with concurrent.futures.ThreadPoolExecutor(max_workers=8) as executor:
future_urls = [executor.submit(fetch_url, url, biotools_id) for biotools_id, url in url_array]
for future in concurrent.futures.as_completed(future_urls):
response, biotools_id = future.result()
Expand Down Expand Up @@ -358,8 +358,9 @@ def translate_publication(val):
def translate_galaxy(val):
if not val is None:
name = val[1]
version = val[2]
return {"title": name + " " + version, "url": f"""https://usegalaxy.org.au/{val[0]}"""}
description = val[1] + ": " + val[2]
version = val[3]
return {"title": name + " " + version, "url": f"""https://usegalaxy.org.au/{val[0]}""", "description": description}
if tool.get(Dataprovider.FIELD_NAMES.INCLUSION) == True:
return {
# see https://stackoverflow.com/a/9285148
Expand All @@ -386,6 +387,7 @@ def get_formatted_yaml(self):
tool_list = self.get_data_only()

tool_list_dictionary = list(map(ToolDB.convert_tool_to_yaml, tool_list))
# filter null values from tool list (i.e. those annotated with "n" for the "include?" field
tool_list_dictionary = list(filter(lambda x: x is not None, tool_list_dictionary))
# see https://stackoverflow.com/q/71281303
# see https://stackoverflow.com/a/6160082
Expand Down

0 comments on commit 72958ff

Please sign in to comment.