-
Notifications
You must be signed in to change notification settings - Fork 615
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into create_cat_regressor
- Loading branch information
Showing
152 changed files
with
2,560 additions
and
1,824 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,13 @@ | ||
repos: | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.8.2 | ||
rev: v0.9.2 | ||
hooks: | ||
- id: ruff | ||
types_or: [python, pyi, jupyter] | ||
args: ["--fix"] | ||
- id: ruff-format | ||
types_or: [python, pyi, jupyter] | ||
# The following can be removed once PLR0917 is out of preview | ||
- name: ruff preview rules | ||
id: ruff | ||
types_or: [python, pyi, jupyter] | ||
args: ["--preview", "--select=PLR0917"] | ||
- repo: https://github.com/flying-sheep/bibfmt | ||
rev: v4.3.0 | ||
|
@@ -19,6 +16,15 @@ repos: | |
args: | ||
- --sort-by-bibkey | ||
- --drop=abstract | ||
- repo: https://github.com/biomejs/pre-commit | ||
rev: v0.6.1 | ||
hooks: | ||
- id: biome-format | ||
additional_dependencies: ["@biomejs/[email protected]"] | ||
- repo: https://github.com/ComPWA/taplo-pre-commit | ||
rev: v0.9.3 | ||
hooks: | ||
- id: taplo-format | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v5.0.0 | ||
hooks: | ||
|
@@ -34,6 +40,3 @@ repos: | |
- id: detect-private-key | ||
- id: no-commit-to-branch | ||
args: ["--branch=main"] | ||
|
||
ci: | ||
autofix_prs: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[formatting] | ||
array_auto_collapse = false | ||
column_width = 120 | ||
compact_arrays = false | ||
indent_string = ' ' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Python: Build Documentation", | ||
"type": "debugpy", | ||
"request": "launch", | ||
"module": "sphinx", | ||
"args": ["-M", "html", ".", "_build"], | ||
"cwd": "${workspaceFolder}/docs", | ||
"console": "internalConsole", | ||
"justMyCode": false, | ||
}, | ||
{ | ||
"name": "Python: Debug Test", | ||
"type": "debugpy", | ||
"request": "launch", | ||
"program": "${file}", | ||
"purpose": ["debug-test"], | ||
"console": "internalConsole", | ||
"justMyCode": false, | ||
"env": { "PYTEST_ADDOPTS": "--color=yes" }, | ||
"presentation": { "hidden": true }, | ||
}, | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"[python][toml][json][jsonc]": { | ||
"editor.formatOnSave": true, | ||
"editor.codeActionsOnSave": { | ||
"source.organizeImports": "explicit", | ||
"source.fixAll": "explicit", | ||
}, | ||
}, | ||
"[python]": { | ||
"editor.defaultFormatter": "charliermarsh.ruff", | ||
}, | ||
"[toml]": { | ||
"editor.defaultFormatter": "tamasfe.even-better-toml", | ||
}, | ||
"[json][jsonc]": { | ||
"editor.defaultFormatter": "biomejs.biome", | ||
}, | ||
"python.analysis.typeCheckingMode": "basic", | ||
"python.testing.pytestArgs": ["-vv", "--color=yes"], | ||
"python.testing.pytestEnabled": true, | ||
"python.terminal.activateEnvironment": true, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json", | ||
"formatter": { | ||
"indentStyle": "space", | ||
"indentWidth": 4, | ||
}, | ||
"overrides": [ | ||
{ | ||
"include": ["./.vscode/*.json", "**/*.jsonc", "**/asv.conf.json"], | ||
"json": { | ||
"formatter": { | ||
"trailingCommas": "all", | ||
}, | ||
"parser": { | ||
"allowComments": true, | ||
"allowTrailingCommas": true, | ||
}, | ||
}, | ||
}, | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,4 +11,5 @@ | |
pp.filter_genes_dispersion | ||
pp.normalize_per_cell | ||
pp.subsample | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,6 +48,8 @@ Compute densities on embeddings. | |
tl.paga | ||
``` | ||
|
||
(data-integration)= | ||
|
||
### Data integration | ||
|
||
```{eval-rst} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,25 @@ | ||
# Contributors | ||
|
||
[anndata graph](https://github.com/scverse/anndata/graphs/contributors>) | [scanpy graph](https://github.com/scverse/scanpy/graphs/contributors)| ☀ = maintainer | ||
|
||
## Current developers | ||
|
||
- [Isaac Virshup](https://github.com/ivirshup), lead developer since 2019 ☀ | ||
- [Gökcen Eraslan](https://twitter.com/gokcen), developer, diverse contributions ☀ | ||
- [Sergei Rybakov](https://github.com/Koncopd), developer, diverse contributions ☀ | ||
- [Fidel Ramirez](https://github.com/fidelram) developer, plotting ☀ | ||
- [Giovanni Palla](https://twitter.com/g_palla1), developer, spatial data | ||
- [Malte Luecken](https://twitter.com/MDLuecken), developer, community & forum | ||
- [Philipp Angerer](https://github.com/flying-sheep), lead developer since 2023, software quality, initial anndata conception ☀ | ||
- [Ilan Gold](https://github.com/ilan-gold), developer, Dask ☀ | ||
- [Severin Dicks](https://github.com/SeverinDicks), developer, performance ☀ | ||
- [Lukas Heumos](https://twitter.com/LukasHeumos), developer, diverse contributions | ||
- [Philipp Angerer](https://github.com/flying-sheep), developer, software quality, initial anndata conception ☀ | ||
|
||
## Other roles | ||
|
||
- [Isaac Virshup](https://github.com/ivirshup), lead developer 2019-2023 | ||
- [Alex Wolf](https://twitter.com/falexwolf): lead developer 2016-2019, initial anndata & scanpy conception | ||
- [Fabian Theis](https://twitter.com/fabian_theis) & lab: enabling guidance, support and environment | ||
|
||
## Former developers | ||
|
||
- Tom White: developer 2018-2019, distributed computing | ||
- [Tom White](https://github.com/tomwhite): developer 2018-2019, distributed computing | ||
- [Gökcen Eraslan](https://twitter.com/gokcen), developer, diverse contributions | ||
- [Sergei Rybakov](https://github.com/Koncopd), developer, diverse contributions | ||
- [Fidel Ramirez](https://github.com/fidelram) developer, plotting | ||
- [Giovanni Palla](https://twitter.com/g_palla1), developer, spatial data | ||
- [Malte Luecken](https://twitter.com/MDLuecken), developer, community & forum |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
(v1.11.0)= | ||
### 1.11.0rc1 {small}`2024-12-20` | ||
|
||
### Features | ||
|
||
- {func}`~scanpy.pp.sample` supports both upsampling and downsampling of observations and variables. {func}`~scanpy.pp.subsample` is now deprecated. {smaller}`G Eraslan & P Angerer` ({pr}`943`) | ||
- Add `layer` argument to {func}`scanpy.tl.score_genes` and {func}`scanpy.tl.score_genes_cell_cycle` {smaller}`L Zappia` ({pr}`2921`) | ||
- Prevent `raw` conflict with `layer` in {func}`~scanpy.tl.score_genes` {smaller}`S Dicks` ({pr}`3155`) | ||
- Add support for `median` as an aggregation function to {func}`~scanpy.get.aggregate`. This allows for median-based aggregation of data (e.g., pseudobulk), complementing existing methods like mean- and sum-based aggregation {smaller}`M Dehkordi (Farhad)` ({pr}`3180`) | ||
- Add `key_added` argument to {func}`~scanpy.pp.pca`, {func}`~scanpy.tl.tsne` and {func}`~scanpy.tl.umap` {smaller}`P Angerer` ({pr}`3184`) | ||
- Support running {func}`scanpy.pp.pca` on sparse Dask arrays with the `'covariance_eigh'` solver {smaller}`P Angerer` ({pr}`3263`) | ||
- Use upstreamed {class}`~sklearn.decomposition.PCA` implementation for {class}`~scipy.sparse.csr_array` and {class}`~scipy.sparse.csr_matrix` (see scikit-learn {ref}`sklearn:changes_1_4`) {smaller}`P Angerer` ({pr}`3267`) | ||
- Add explicit support to {func}`scanpy.pp.pca` for `svd_solver='covariance_eigh'` {smaller}`P Angerer` ({pr}`3296`) | ||
- Add support for {class}`dask.array.Array` to {func}`scanpy.pp.calculate_qc_metrics` {smaller}`I Gold` ({pr}`3307`) | ||
- Support `layer` parameter in {func}`scanpy.pl.highest_expr_genes` {smaller}`P Angerer` ({pr}`3324`) | ||
- Run numba functions single-threaded when called from inside of a {class}`~multiprocessing.pool.ThreadPool` {smaller}`P Angerer` ({pr}`3335`) | ||
- Switch {func}`~scanpy.logging.print_header` and {func}`~scanpy.logging.print_versions` to {mod}`session_info2` {smaller}`P Angerer` ({pr}`3384`) | ||
- Add sampling probabilities/mask parameter `p` to {func}`~scanpy.pp.sample` {smaller}`P Angerer` ({pr}`3410`) | ||
|
||
### Performance | ||
|
||
- Speed up {func}`~scanpy.pp.regress_out` {smaller}`P Ashish, P Angerer & S Dicks` ({pr}`3284`) | ||
|
||
### Documentation | ||
|
||
- Improve {func}`~scanpy.external.pp.harmony_integrate` docs {smaller}`D Kühl` ({pr}`3362`) | ||
- Raise {exc}`FutureWarning` when calling deprecated {mod}`scanpy.pp` functions {smaller}`P Angerer` ({pr}`3380`) | ||
- | Deprecate … | in favor of … | | ||
| --- | --- | | ||
| {func}`scanpy.read_visium` | {func}`squidpy.read.visium` | | ||
| {func}`scanpy.datasets.visium_sge` | {func}`squidpy.datasets.visium` | | ||
| {func}`scanpy.pl.spatial` | {func}`squidpy.pl.spatial_scatter` | | ||
|
||
{smaller}`P Angerer` ({pr}`3407`) | ||
|
||
### Bug fixes | ||
|
||
- Upper-bound {mod}`sklearn` `<1.6.0` due to {issue}`dask/dask-ml#1002` {smaller}`Ilan Gold` ({pr}`3393`) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Fix reference in {mod}`scanpy.pp` page {smaller}`D Kazemi` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Fix {func}`~scanpy.tl.rank_genes_groups` compatibility with data >10M cells {smaller}`P Angerer` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Fix {func}`scanpy.pl.rank_genes_groups`’s `ax` parameter {smaller}`P Angerer` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Fix version number inference in development environments (CI and local) {smaller}`P Angerer` |
Oops, something went wrong.