Skip to content

Hvg - #330

Merged
falexwolf merged 9 commits into
masterfrom
hvg
Nov 5, 2018
Merged

Hvg#330
falexwolf merged 9 commits into
masterfrom
hvg

Conversation

@Koncopd

@Koncopd Koncopd commented Oct 28, 2018

Copy link
Copy Markdown
Member

No description provided.

@Koncopd
Koncopd requested a review from falexwolf October 28, 2018 09:11
Comment thread scanpy/preprocessing/recipes.py Outdated
"""

from . import simple as pp
from ._deprecated.highly_variable_genes import filter_genes_dispersion

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I guess the recipe_weinreb17 was relying on filter_genes_cv_deprecated, it's unfortunately not tested, but can you check and maybe add a small test? I fear this would break a lot of people's code that used the weinreb recipe.

@Koncopd Koncopd Oct 29, 2018 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Oh, actually about this recipe, i forgot to import filter_genes_cv_deprecated from ._deprecated.highly_variable_genes. Fixed it.

For the recipes i just changed the point of import, no other things were changed.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

yes, I was referring to that omission :)

@@ -0,0 +1,34 @@
library(reticulate)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ah! You're now requiring Seurat in the tests??? That's something that we don't want. No R scripts in the Scanpy tests... The previous version of filter_genes_dispersion was benchmarked and the tests should be produced with it; the new function should test against that output.

Seurat might definitely change their function in the future, and we don't want to get in trouble with that. We just want to be consistent within Scanpy.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

OK, got it; you just used seurat to produce the test data.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

That's of course fine; it's a bit redundant; but a nice-to-have. 😄

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The script can be removed of course, but i thought it would be nice to have in case the dataset changes, for example.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

yes! it's cool!


FILE = Path(__file__).parent / Path('_scripts/seurat_hvg.csv')

def test_higly_variable_genes_compare_to_seurat():

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Could you add the same test for the deprecated filter_genes_dispersion? We want to be sure that nobody touches it again in the future...

Thank you!

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yes, ofc.

@falexwolf

Copy link
Copy Markdown
Member

The whole PR is pretty awesome already! I wrote some comments...

Can you also add the function to the docs, cross reference the deprecated and the new function in the Notes section and add it to the release notes?

@Koncopd

Koncopd commented Oct 29, 2018

Copy link
Copy Markdown
Member Author

Yes, i will.

@falexwolf

Copy link
Copy Markdown
Member

Thank you!

@falexwolf

Copy link
Copy Markdown
Member

I'm merging this now, as we're slowly running in danger of getting conflicts with other people working on this. Please move forward with the remaining issues in a new PR. Thank you!

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