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 for highly_variable_genes flavor=seurat modifying layer #2698

Merged
merged 7 commits into from Oct 19, 2023

Conversation

eroell
Copy link
Contributor

@eroell eroell commented Oct 18, 2023

Fixes #2668.

sc.pp.highly_variable_genes(adata, flavor='seurat') modified the used layer in some cases, as described in #2668.

This PR fixes this behaviour, and adds additional tests.

@codecov
Copy link

codecov bot commented Oct 18, 2023

Codecov Report

Merging #2698 (a174bc9) into master (82fc260) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2698      +/-   ##
==========================================
+ Coverage   71.99%   72.01%   +0.01%     
==========================================
  Files         108      108              
  Lines       11931    11934       +3     
==========================================
+ Hits         8590     8594       +4     
+ Misses       3341     3340       -1     
Files Coverage Δ
scanpy/preprocessing/_highly_variable_genes.py 95.93% <100.00%> (+0.57%) ⬆️

@flying-sheep flying-sheep added this to the 1.9.6 milestone Oct 19, 2023
@flying-sheep
Copy link
Member

flying-sheep commented Oct 19, 2023

OK! This is a bugfix, so I added this PR to the bugfix milestone.

Please add a release note for 1.9.6, then it’s ready!

@flying-sheep flying-sheep enabled auto-merge (squash) October 19, 2023 15:23
@flying-sheep flying-sheep merged commit 373c585 into scverse:master Oct 19, 2023
11 checks passed
meeseeksmachine pushed a commit to meeseeksmachine/scanpy that referenced this pull request Oct 19, 2023
flying-sheep pushed a commit that referenced this pull request Oct 19, 2023
…ing layer (#2700)

Co-authored-by: Eljas Roellin <65244425+eroell@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.

highly_variable_genes changing my data
2 participants