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

Fix using custom layer with highly_variable_genes #2302

Merged
merged 4 commits into from
Aug 11, 2022

Conversation

DriesSchaumont
Copy link
Contributor

@DriesSchaumont DriesSchaumont commented Jul 29, 2022

This PR takes off where #2183 went stale.

@DriesSchaumont DriesSchaumont marked this pull request as ready for review July 29, 2022 13:46
@codecov
Copy link

codecov bot commented Jul 29, 2022

Codecov Report

Merging #2302 (3f226e2) into master (41a7b83) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #2302   +/-   ##
=======================================
  Coverage   71.82%   71.82%           
=======================================
  Files          98       98           
  Lines       11539    11539           
=======================================
  Hits         8288     8288           
  Misses       3251     3251           
Impacted Files Coverage Δ
scanpy/preprocessing/_highly_variable_genes.py 94.27% <ø> (ø)

Copy link
Member

@Zethson Zethson left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!

@Zethson Zethson merged commit 4623bb7 into scverse:master Aug 11, 2022
lazappi added a commit to lazappi/scanpy that referenced this pull request Aug 12, 2022
* origin/fix-2230:
  Fix using custom layer with highly_variable_genes (scverse#2302)
  [pre-commit.ci] pre-commit autoupdate (scverse#2303)
  [pre-commit.ci] pre-commit autoupdate (scverse#2289)
ivirshup pushed a commit to meeseeksmachine/scanpy that referenced this pull request Feb 16, 2023
* Fix using custom layer with highly_variable_genes

* Add tests

* Add release note

* Move release note to correct section
ivirshup added a commit that referenced this pull request Feb 16, 2023
* Backport PR #2414: matplotlib 3.7 compat

* fix scrublet

* Update visium default plot for matplotlib 3.7

* Update hashsolo docstrings

* skip plotting test that changed on mpl 3.7 if mpl < 3.7 is installed

* Fix hashsolo docs (again)

* update anndata-dev tests to install anndata test deps

* Temporarily set warnings as errors to False for doc builds

* Release notes

* Fix using custom layer with highly_variable_genes (#2302)

* Fix using custom layer with highly_variable_genes

* Add tests

* Add release note

* Move release note to correct section

* Format release notes

* Add check for number of normalized dispersions (#2231)

* Add check for number of normalized dispersions

In sc.pp.highly_variable_genes() when flavor='cell_ranger' and
n_top_genes is set check that enough normalized dispersions have been
calculated and if not raise a warning and set n_top_genes to the number
of calculated dispersions.

Fixes #2230

* Use .size instead of len()

* Add test for n_top_genes warning

* Add release note

* Remove blank line

Co-authored-by: Isaac Virshup <ivirshup@gmail.com>

---------

Co-authored-by: Isaac Virshup <ivirshup@gmail.com>
Co-authored-by: adamgayoso <adamgayoso@users.noreply.github.com>
Co-authored-by: Dries Schaumont <5946712+DriesSchaumont@users.noreply.github.com>
Co-authored-by: Luke Zappia <lazappi@users.noreply.github.com>
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