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.

Output directory structure

See original GitHub issue

Hi,

After the testathlon, I thought it would be nice to add miniwdl to the pytest-workflow functional tests and documentation.

In the process of doing so I found that miniwdl has a slightly surprising output directory structure. The workflow I run for functional testing can be found in this wdl, the inputs are in this json, and the pytest-workflow tests are in this yaml.

When I run these tests with cromwell’s final_workflow_outputs_dir functionality and enable the relative_output_paths, all the files end up where I expect them.

In miniwdl there is a consistent output directory structure which is suitable for testing if the -d flag is used. However, the placing of the files is a bit unintuitive.

In cromwell the files end up like this

    - path: test-output/rand/0.bin
    - path: test-output/rand/1.bin
    - path: test-output/rand/2.bin
    - path: test-output/rand/3.bin
etc.

and in miniwdl like this

    - path: test-output/output_links/rand_files/0/0.bin
    - path: test-output/output_links/rand_files/1/1.bin
    - path: test-output/output_links/rand_files/2/2.bin
    - path: test-output/output_links/rand_files/3/3.bin
etc.

This makes perfect sense from a file collision perspective. But on the other hand I do not get the directory structure I intended. The subfolders I defined are gone, there are sudden numbered directories, there is a dir called <task_name>_files and there is an output_links directory. Also, all the call folders are in the output.

As a user I am only interested in the results, and not in the internal structure of miniwdl. Would it be desirable to have a similar ‘relative output’ function for miniwdl so I can get a folder with just the results, like I can in cromwell?

If you are okay with this I can start working on a PR.

Best regards, Ruben

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
rhpvordermancommented, Apr 16, 2020

A miniwdl example will be added to pytest-workflow (https://github.com/LUMC/pytest-workflow/pull/94) and should be available in the next release. Thanks again!

1reaction
rhpvordermancommented, Feb 21, 2020

Thanks. That is clear! The directory structure as it is currently is testable, so I will document that in the pytest-workflow miniwdl example documentation.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to export the directory tree of a folder in Windows
Another easy way to export the structure of a folder in Windows 10 is to use a tool that we created for you,...
Read more >
Output directory structure — neatseq_flow 1.5.0 documentation
In the data directory, the analysis outputs are organized by module, by module instance and by sample. Below is the data directory for...
Read more >
Customizing directory structure for generated code - IBM
Specifying the output directory for generated code · Open the Features window for the relevant component. · On the General tab, use the...
Read more >
Output and directory structure in typescript - Stack Overflow
I tried a lot of solutions like playing with outDir, putting my tsconfig in app/src and run compilation from there... Nothing, just can't...
Read more >
How can I export a directory structure in Windows? - Super User
I agree with @Tolga. I checked and no matter the input from the pipeline, tree.com outputs the result for the current working directory....
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