question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Globbed output files should be provisionable to directory

See original GitHub issue

Feature Request

Desired behaviour

Requested by @keiranmraine

Currently, we handle arrays in the following format ( https://github.com/ga4gh/dockstore/blob/develop/dockstore-integration-testing/src/test/resources/arrays.cwl and https://github.com/ga4gh/dockstore/blob/develop/dockstore-integration-testing/src/test/resources/testArrayHttpInputLocalOutput.json ) i.e. mapping an output file to an output file or mapping an output array of files to an output array of files.

It looks like we’re missing the case where an output array of files can be provisioned to an output directory.

outputs:
  output:
    type:
      type: array
      items: File
    outputBinding:
      glob:
        - "*.fq"
        - "*.fq.gz"
        - "*.fa"
        - "*.fa.gz"

to

 "output": {
    "path": "/tmp/fun/",
    "class": "Directory"
  }

IIRC, we have code supporting secondary files that supports a similar use-case and may be re-used to implement this https://raw.githubusercontent.com/ga4gh/dockstore/develop/dockstore-client/src/test/resources/split.cwl and https://raw.githubusercontent.com/ga4gh/dockstore/develop/dockstore-client/src/test/resources/split.json

Currently, this executes with no errors but the output files are not provisioned elsewhere

Environment (Browser or OS and Dockstore version)

DockstoreUI - 1.2.2 DockstoreApi - 1.2.1

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
keiranmrainecommented, May 26, 2017

Okay, working for named single file and directory. Thanks a lot 😃

1reaction
keiranmrainecommented, May 18, 2017

@denis-yuen If there’s any way I can speed the process along let me know. Happy to test pre-release versions

Read more comments on GitHub >

github_iconTop Results From Across the Web

EISDIR: illegal operation on a directory - docker windows ...
Hi, I have found weird issue, where glob.sync uses scandir syscall on a file. This behaviour only affects glob running in the docker...
Read more >
Submitting a Job — HTCondor Manual 10.1.1 documentation
The standard output for this job will go to the file outputfile , as specified by the ... then both files and directories...
Read more >
File
Path to the directory that stores the source files. The origin reads files in the specified directory and subdirectories. You can use glob...
Read more >
CLI commands - Infracost
It can also generate Infracost JSON output. You can point Infracost to either a Terraform directory, or plan JSON file, using the --path...
Read more >
matti/glob-outputs/dir - Terraform Registry
Published March 5, 2018 by matti. Source Code: github.com/matti/terraform-dir-glob-outputs (report an issue) ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found