Add Submodule Support
The base workflow interacts with the Astrocyte platform and the existing workflow. It contains some basic components that are required by the Astrocyte platform. It will be imported to the Astrocyte platform as an independent Astrocyte workflow after connecting to the existing workflow you have. So, please clone this repo, rename it, and edit the meta information in the `astrocyte_pkg.yml` file to reflect the function of your existing workflow.
The parameters defined in this file such as `params.source_entrypoint`, `params.parameter1`, `params.parameter2`, and `params.parameter_nonopt` work as default values for the Astrocyte workflow. They will be overwritten by the parameters defined in `astrocyte_pkg.yml` when runs on the local machine, or by the parameters received from the website when runs on the Astrocyte website. If you defined more parameters in the `astrocyte_pkg.yml`, add them in this file as well.
These are the places where the magic happens. The existing repo will be cloned and saved to `workflow/external_repo/` as a submodule, once the `.gitmodules` configured correctly. Below is an example configuration. It defines the submodule name, place in this repo, the URL of the existing workflow, and branch to use.