-
Notifications
You must be signed in to change notification settings - Fork 15
Add basic integration tests for process_samples #967
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
base: main
Are you sure you want to change the base?
Conversation
@@ -0,0 +1,42 @@ | |||
name: "assert_test_workflow_2_output" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this just be "assert_test_workflow_output", and the folder name as well?
@@ -7,6 +7,8 @@ info: | |||
namespace: transform | |||
- name: remove_modality | |||
namespace: filter | |||
- name: assert_test_workflow_2_output |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cf comment below, should this just be 'assert_test_workflow_output'?
|
||
|
||
def test_modalities_present(output_h5mu): | ||
assert all(k in output_h5mu.obsm.keys() for k in ("rna", "rna")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to test for all modalities present in the test data, or just rna?
assert all(k in output_h5mu.obsm.keys() for k in ("rna", "rna")) | |
assert all(k in output_h5mu.obsm.keys() for k in ("rna", "prot")) |
) | ||
) | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice to also test for the generated rna .obs columns, e.g. filter_with_hvg, fraction_mitochondrial
Changelog
Add basic integration tests for process_samples
Issue ticket number and link
Closes #xxxx (Replace xxxx with the GitHub issue number)Checklist before requesting a review
I have performed a self-review of my code
Conforms to the Contributor's guide
Check the correct box. Does this PR contain:
Proposed changes are described in the CHANGELOG.md
CI tests succeed!