Skip to content

Commit f75ff86

Browse files
authored
Merge branch 'master' into cwlprov-log-filename
2 parents dd3ad94 + c1a5187 commit f75ff86

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

README.rst

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,13 +180,17 @@ By default, cwltool searches https://dockstore.org/ . Use ``--add-tool-registry
180180

181181
For example ::
182182

183-
cwltool --non-strict quay.io/collaboratory/dockstore-tool-bamstats:master test.json
183+
cwltool quay.io/collaboratory/dockstore-tool-bamstats:develop test.json
184184

185185
and (defaults to latest when a version is not specified) ::
186186

187-
cwltool --non-strict quay.io/collaboratory/dockstore-tool-bamstats test.json
187+
cwltool quay.io/collaboratory/dockstore-tool-bamstats test.json
188188

189-
For this example, grab the test.json (and input file) from https://github.com/CancerCollaboratory/dockstore-tool-bamstats
189+
For this example, grab the test.json (and input file) from https://github.com/CancerCollaboratory/dockstore-tool-bamstats ::
190+
191+
wget https://dockstore.org/api/api/ga4gh/v2/tools/quay.io%2Fbriandoconnor%2Fdockstore-tool-bamstats/versions/develop/PLAIN-CWL/descriptor/test.json
192+
wget https://github.com/CancerCollaboratory/dockstore-tool-bamstats/raw/develop/rna.SRR948778.bam
193+
190194

191195
.. _`GA4GH Tool Registry API`: https://github.com/ga4gh/tool-registry-schemas
192196

cwltool/resolver.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,16 @@ def tool_resolver(document_loader, uri):
4747
return None
4848

4949

50-
ga4gh_tool_registries = ["https://dockstore.org:8443"]
50+
ga4gh_tool_registries = ["https://dockstore.org/api"]
51+
GA4GH_TRS = "{0}/api/ga4gh/v2/tools/{1}/versions/{2}/plain-CWL/descriptor"
5152

5253
def resolve_ga4gh_tool(document_loader, uri):
5354
path, version = uri.partition(":")[::2]
5455
if not version:
5556
version = "latest"
5657
for reg in ga4gh_tool_registries:
57-
ds = "{0}/api/ga4gh/v1/tools/{1}/versions/{2}/plain-CWL/descriptor".format(reg, urllib.parse.quote(path, ""), urllib.parse.quote(version, ""))
58+
ds = GA4GH_TRS.format(reg, urllib.parse.quote(path, ""),
59+
urllib.parse.quote(version, ""))
5860
try:
5961
resp = document_loader.session.head(ds)
6062
resp.raise_for_status()

0 commit comments

Comments
 (0)