zavolanlab / zarp-cli

A user-friendly command-line interface for the ZARP RNA-seq analysis workflow
https://zavolanlab.github.io/zarp-cli/
Apache License 2.0
5 stars 1 forks source link

WIP: Clone external repositories #24

Closed dominikburri closed 1 year ago

dominikburri commented 2 years ago

Zarp-cli relies on other github repositories, such as zarp. Those need to be available for successful execution. This PR includes a new class in the module zarp.config.init that clones repos as submodules. See also the more comprehensive documentation of git submodules.

Fixes #22

A simple test was added, but the functionality of downloading and preparing new repos is not yet tested. I manually ran the code and successfully cloned zarp into a directory of my choice submodules/zarp. However, addition as test was more complicated, as some files and directories need to be deleted and use of temporary directory does not work with submodules. In particular, .gitmodules, .git/modules/ and the repo itself should be torn down after test.

Remaining issues:

Type of change

Please delete options that are not relevant.

Checklist

Please carefully read these items and tick them off if the statements are true or do not apply.

If for some reason you are unable to tick off all boxes, please leave a comment explaining the issue you are facing so that we can work on it together.

uniqueg commented 1 year ago

This seems like quite a lot of work still and and we don't this to block. For now I will just require that ZARP and dependencies are installed and that the root path is passed during ZARP-cli init.

Closing for now but may be revisited in due time.

Some additional issues to consider when designing this: