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

Updated Harmony Integrate Docs to better match interface to Harmonypy package #3362

Merged
merged 8 commits into from
Nov 19, 2024

Conversation

DaminK
Copy link
Contributor

@DaminK DaminK commented Nov 12, 2024

Fixed harmony documentation where a crucial feature of Harmony, namely the integration w.r.t. multiple covariates was not mentioned despite being supported by the interface. Harmony can take strings and lists of strings as its "vars_use" parameter which is named "key" in the Scanpy interface.

  • Closes #
  • Tests included or not required because:

Small non-breaking change to docs. However, pre-commit throws:

ruff.....................................................................Failed
- hook id: ruff
- files were modified by this hook

Will wait if some maintainer know an easy fix for this before trying to debug this myself. Guess its more related to incorrect flags somewhere than the code.

  • Release notes not necessary because:
    Change docs to better reflect current code behaviour/features

Fixed harmony documentation where a crucial feature of Harmony, namely the integration w.r.t. multiple covariates was not mentioned despite being supported by the interface. Harmony can take strings and lsits of strings as its "vars_sue" parameter which is named "key" in the Scanpy interface
Added required improt fo sequence type
Included # noqa: TCH003 comment like other imports of Mapping module do in scanpys source code
Copy link

codecov bot commented Nov 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.49%. Comparing base (0f32b08) to head (99aa9da).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3362   +/-   ##
=======================================
  Coverage   76.49%   76.49%           
=======================================
  Files         111      111           
  Lines       12866    12867    +1     
=======================================
+ Hits         9842     9843    +1     
  Misses       3024     3024           
Files with missing lines Coverage Δ
src/scanpy/external/pp/_harmony_integrate.py 87.50% <100.00%> (+0.83%) ⬆️
---- 🚨 Try these New Features:

@flying-sheep flying-sheep added this to the 1.10.5 milestone Nov 19, 2024
@flying-sheep
Copy link
Member

Thanks!

@flying-sheep flying-sheep merged commit 751eafa into scverse:main Nov 19, 2024
12 of 14 checks passed
meeseeksmachine pushed a commit to meeseeksmachine/scanpy that referenced this pull request Nov 19, 2024
flying-sheep pushed a commit that referenced this pull request Nov 19, 2024
… better match interface to Harmonypy package) (#3376)

Co-authored-by: Damin Kühn <[email protected]>
@DaminK DaminK deleted the harmony_doc_fix branch November 19, 2024 10:08
flying-sheep added a commit that referenced this pull request Nov 21, 2024
… package (#3362)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Phil Schaf <[email protected]>
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