Skip to content

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

DriesSchaumont
Copy link
Member

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:

    • Breaking changes
    • New functionality
    • Major changes
    • Minor changes
    • Documentation
    • Bug fixes
  • Proposed changes are described in the CHANGELOG.md

  • CI tests succeed!

@@ -0,0 +1,42 @@
name: "assert_test_workflow_2_output"
Copy link
Contributor

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
Copy link
Contributor

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"))
Copy link
Contributor

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?

Suggested change
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"))

)
)


Copy link
Contributor

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

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