-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Description
There was a request to add input output information to a workflow, file type would be useful.
But a quick check showed that the information that can be requested form workflowhub is not very useful imo.
For some reason file type is not included.
import json
for wf in data:
wfhub_wf = get_request_json(
f"https://{prefix}workflowhub.eu{wf['links']['self']}",
header,
)
internals = wfhub_wf["data"]["attributes"]["internals"]
io = {
"inputs": internals.get("inputs", []),
"outputs": internals.get("outputs", []),
}
print(json.dumps(io, indent=2))
breakOutput
{
"inputs": [
{
"id": "#main/Bacterial genome contigs",
"name": "#main/Bacterial genome contigs",
"description": "The input for this workflow is a single FASTA file containing contigs of one bacterial genome.",
"type": [
{
"type": "File"
}
],
"default_value": null
},
{
"id": "#main/Reference Allele Scheme",
"name": "#main/Reference Allele Scheme",
"description": "Reference Allele Scheme (from pubMLST, BIGSdb, Enterobase, or cgMLST.org) that will be used by CoreProfiler to compare the contigs to and identify corresponding alleles.",
"type": [
{
"type": "string"
}
],
"default_value": null
}
],
"outputs": [
{
"id": "#main/CoreProfiler allele calling report",
"name": "#main/CoreProfiler allele calling report",
"description": null,
"type": [
{
"type": "File"
}
],
"source_ids": [
"#main/CoreProfiler/output_file"
]
},
{
"id": "#main/Extracted cgMLST results by ToolDistillator",
"name": "#main/Extracted cgMLST results by ToolDistillator",
"description": null,
"type": [
{
"type": "File"
}
],
"source_ids": [
"#main/ToolDistillator extraction/output_json"
]
},
{
"id": "#main/Information about temporary alleles found by CoreProfiler",
"name": "#main/Information about temporary alleles found by CoreProfiler",
"description": null,
"type": [
{
"type": "File"
}
],
"source_ids": [
"#main/CoreProfiler/profiles_w_tmp_alleles"
]
},
{
"id": "#main/Newly detected alleles by CoreProfiler",
"name": "#main/Newly detected alleles by CoreProfiler",
"description": null,
"type": [
{
"type": "File"
}
],
"source_ids": [
"#main/CoreProfiler/outfa"
]
},
{
"id": "#main/Summarized cgMLST ToolDistillator results",
"name": "#main/Summarized cgMLST ToolDistillator results",
"description": null,
"type": [
{
"type": "File"
}
],
"source_ids": [
"#main/ToolDistillator summarize/summary_json"
]
}
]
}
Metadata
Metadata
Assignees
Labels
No labels