crs4 / repo2rocrate

Generate a Workflow RO-Crate from a best-practice workflow repository
Apache License 2.0
1 stars 2 forks source link

Auto-detect workflow language #11

Closed simleo closed 2 years ago

simleo commented 2 years ago

Closes #4.

Adds a top-level find_workflow function to find the workflow and detect the repo flavor ("nextflow", "snakemake", "galaxy") at the same time. In the CLI, the new default for --lang is to auto-detect: this means that repo2rocrate, if the repo has one of the known layouts, should do the right thing when the workflow language is not specified.

Also adds an option to override the workflow path (the default is to auto-detect, as before).