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

Fixes v. 0.0.10 bugs #91

Merged
merged 12 commits into from
Jun 13, 2024
Merged

Fixes v. 0.0.10 bugs #91

merged 12 commits into from
Jun 13, 2024

Conversation

cameronmartino
Copy link
Collaborator

This PR fixes the following issues:

The filtering is ignored if the transformation/filtering is done before running tempted.

The HTML files are not packaged with the release in the setup.py.

If no-centering is done then the original table list is used.

@cameronmartino cameronmartino requested review from wasade and removed request for wasade June 6, 2024 22:44
gemelli/rpca.py Outdated
table = table.filter(frequency_filter, axis='observation')
table = table.filter(sample_filter, axis='sample')
if min_feature_count is not None:
table = table.filter(observation_filter, axis='observation')
Copy link
Member

Choose a reason for hiding this comment

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

Note these operations are inplace by default. If that is not expected, suggest either creating a copy prior, or passing inplace=False

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good to know. I added inplace=False just for continuities sake. Thanks!

gemelli/rpca.py Outdated
if min_feature_frequency is not None:
table = table.filter(frequency_filter, axis='observation')
if min_sample_count is not None:
table = table.filter(sample_filter, axis='sample')
Copy link
Member

Choose a reason for hiding this comment

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

Suggest ensuring empty samples / features are removed just in case

Suggested change
table = table.filter(sample_filter, axis='sample')
table = table.filter(sample_filter, axis='sample')
table = table.remove_empty()

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Added! Thanks!

@cameronmartino cameronmartino merged commit 7209fd3 into master Jun 13, 2024
1 check passed
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