Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add basic project structure #1

Merged
merged 34 commits into from
Aug 13, 2021
Merged

Add basic project structure #1

merged 34 commits into from
Aug 13, 2021

Conversation

miltondp
Copy link
Member

@miltondp miltondp commented Aug 11, 2021

This PR copies most of the project structure from PhenoPLIER into this new project. It adds Github Actions workflows, unit tests, and code coverage. Most of the files here were already reviewed, and it would be great if the reviewer can follow the instructions (see below) to create the conda environment without problems.

The main files that need review are:

  • .github/workflows/pytest.yaml: it is similar to the PhenoPLIER's one, but here 1) I add support to cache the entire conda environment (which significantly reduces workflow time), 2) tests are run also in macOS and MS Windows, and 3) code coverage reports are submitted to codecov.
  • README.md: this file was already mostly reviewed, but this version includes some "TODOs" since the project is just starting (for instance, no description available yet).
  • environment/README.md: if possible, it would be great if the reviewer can follow the instructions to create the conda environment. It won't take much time, and we found some issues previously in some contexts (my guess is that it is related to a channel priority problem). After installing the environment, follow the instructions in tests/README.md to run the unit tests.

The rest of the files were mostly entirely copied from PhenoPLIER (which were already reviewed), but the reviewer is welcome to take a look again of course.

@miltondp miltondp marked this pull request as ready for review August 11, 2021 15:45
@miltondp miltondp requested a review from jjc2718 August 11, 2021 15:45
Copy link
Member

@jjc2718 jjc2718 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Just a few small comments.

One thing you might mention in the environment README is that your script environment/scripts/setup_environment.sh requires Conda version >=4.9.0 for the --no-capture-output argument (I was on an older version and had to upgrade to get it to work, before that it threw an error). Otherwise the environment setup worked fine for me!

environment/scripts/install_other_packages.sh Show resolved Hide resolved
environment/scripts/setup_data.py Show resolved Hide resolved
libs/clustermatch/log_config.yaml Outdated Show resolved Hide resolved
libs/clustermatch/settings.py Show resolved Hide resolved
scripts/run_nbs_server.sh Outdated Show resolved Hide resolved
tests/test_conf.py Show resolved Hide resolved
@miltondp
Copy link
Member Author

Looks good! Just a few small comments.

Thank you for your review, @jjc2718!

One thing you might mention in the environment README is that your script environment/scripts/setup_environment.sh requires Conda version >=4.9.0 for the --no-capture-output argument (I was on an older version and had to upgrade to get it to work, before that it threw an error). Otherwise the environment setup worked fine for me!

That's awesome! I'm very glad that it worked for you because it failed for @ben-heil before, so maybe this is related to a channel priority issue. I'm not entirely sure how to fix this, because having custom configurations per user might be common, and it should be addressed here. I will add a comment regarding this aspect in the README.md file.

I also added a note regarding the required conda version.

@miltondp miltondp merged commit d0f9542 into greenelab:main Aug 13, 2021
@miltondp miltondp deleted the basic-folder-structure branch August 13, 2021 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants