Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: scverse/scirpy
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.18.0
Choose a base ref
...
head repository: scverse/scirpy
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref

Commits on Sep 10, 2024

  1. [pre-commit.ci] pre-commit autoupdate (#552)

    updates:
    - [github.com/astral-sh/ruff-pre-commit: v0.6.3 → v0.6.4](astral-sh/ruff-pre-commit@v0.6.3...v0.6.4)
    
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    pre-commit-ci[bot] authored Sep 10, 2024
    Copy the full SHA
    da4e9bf View commit details

Commits on Sep 21, 2024

  1. [pre-commit.ci] pre-commit autoupdate (#553)

    updates:
    - [github.com/astral-sh/ruff-pre-commit: v0.6.4 → v0.6.5](astral-sh/ruff-pre-commit@v0.6.4...v0.6.5)
    
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    pre-commit-ci[bot] authored Sep 21, 2024
    Copy the full SHA
    6ed2c99 View commit details

Commits on Sep 30, 2024

  1. [pre-commit.ci] pre-commit autoupdate (#558)

    updates:
    - [github.com/astral-sh/ruff-pre-commit: v0.6.5 → v0.6.7](astral-sh/ruff-pre-commit@v0.6.5...v0.6.7)
    
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    pre-commit-ci[bot] authored Sep 30, 2024
    Copy the full SHA
    4bc951e View commit details
  2. Filter clonotype clusters to be displayed by anndata.obs data (#557)

    * static clonotype clusters filtering
    
    * cluster filtering done with cell indices
    
    * refactoring
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * filtering with mask_obs
    
    * filtering based on reversed cell indices dict
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * bug fix
    
    * Update src/scirpy/tl/_clonotypes.py
    
    Co-authored-by: Gregor Sturm <mail@gregor-sturm.de>
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * allow to pass boolean mask directly as parameter
    
    * added test case
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * testing
    
    * Update CHANGELOG.md
    
    ---------
    
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    Co-authored-by: Gregor Sturm <mail@gregor-sturm.de>
    3 people authored Sep 30, 2024
    Copy the full SHA
    9181b65 View commit details

Commits on Oct 1, 2024

  1. [pre-commit.ci] pre-commit autoupdate (#559)

    updates:
    - [github.com/astral-sh/ruff-pre-commit: v0.6.7 → v0.6.8](astral-sh/ruff-pre-commit@v0.6.7...v0.6.8)
    
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    pre-commit-ci[bot] authored Oct 1, 2024
    Copy the full SHA
    95a0e1e View commit details

Commits on Oct 8, 2024

  1. [pre-commit.ci] pre-commit autoupdate (#560)

    * [pre-commit.ci] pre-commit autoupdate
    
    updates:
    - [github.com/astral-sh/ruff-pre-commit: v0.6.8 → v0.6.9](astral-sh/ruff-pre-commit@v0.6.8...v0.6.9)
    - [github.com/pre-commit/pre-commit-hooks: v4.6.0 → v5.0.0](pre-commit/pre-commit-hooks@v4.6.0...v5.0.0)
    
    * Update .pre-commit-config.yaml
    
    ---------
    
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    Co-authored-by: Gregor Sturm <mail@gregor-sturm.de>
    pre-commit-ci[bot] and grst authored Oct 8, 2024
    Copy the full SHA
    c9cda49 View commit details

Commits on Oct 15, 2024

  1. Add optional dependencies to [test] (#562)

    * Update pyproject.toml
    
    * Update test.yaml
    
    * Update CHANGELOG.md
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    ---------
    
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    grst and pre-commit-ci[bot] authored Oct 15, 2024
    Copy the full SHA
    2157800 View commit details

Commits on Oct 20, 2024

  1. Copy the full SHA
    b7f7a3c View commit details

Commits on Oct 22, 2024

  1. [pre-commit.ci] pre-commit autoupdate (#566)

    updates:
    - [github.com/astral-sh/ruff-pre-commit: v0.6.9 → v0.7.0](astral-sh/ruff-pre-commit@v0.6.9...v0.7.0)
    
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    pre-commit-ci[bot] authored Oct 22, 2024
    Copy the full SHA
    7c5726b View commit details
  2. Add Stephenson datasets (#565)

    * Add Stephenson datasets
    
    * Add changelog
    
    * Added preprocessing description regarding stephenson_5k dataset
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    ---------
    
    Co-authored-by: Mario Kanetscheider <m.kanne@ymail.com>
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    3 people authored Oct 22, 2024
    Copy the full SHA
    e02a82b View commit details

Commits on Oct 30, 2024

  1. [pre-commit.ci] pre-commit autoupdate (#568)

    updates:
    - [github.com/astral-sh/ruff-pre-commit: v0.7.0 → v0.7.1](astral-sh/ruff-pre-commit@v0.7.0...v0.7.1)
    
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    pre-commit-ci[bot] authored Oct 30, 2024
    Copy the full SHA
    d8efffa View commit details
  2. Unpin anndata (#551)

    * unpin anndata
    
    * Update CHANGELOG.md
    grst authored Oct 30, 2024
    Copy the full SHA
    e5ffada View commit details

Commits on Nov 1, 2024

  1. BCR tutorial (#542)

    * Added beta-version v2 of bcr tutorial and adapted corresponding file accordingly; tested to add two citations into .bib file
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * Fixed issues with citation, leading to a fail of build-the-docs
    
    * Added missing citations and removed references to in-work functions
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * Fixed an issue with one citation
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * Updated glossary to match new BCR functionalities and offer the user easy-access literature
    
    * Reference to new glossary entries
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * Fixed faulty citation
    
    * Update tutorial
    
    * update tutorial
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * Update notebook
    
    * Update tutorial
    
    * Discussion regarding bimodality of dataset
    
    * Remove sections that will be added in separate PR
    
    * Improve wording
    
    * Update CHANGELOG
    
    * Add BCR tutorial to CI
    
    * Fix glossary link
    
    * Glossary updates
    
    * Update references to preprocessing tools
    
    * Fix function reference
    
    ---------
    
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    Co-authored-by: Gregor Sturm <gregor.sturm@boehringer-ingelheim.com>
    Co-authored-by: Gregor Sturm <mail@gregor-sturm.de>
    4 people authored Nov 1, 2024
    Copy the full SHA
    86e93ce View commit details

Commits on Nov 4, 2024

  1. [pre-commit.ci] pre-commit autoupdate (#569)

    updates:
    - [github.com/astral-sh/ruff-pre-commit: v0.7.1 → v0.7.2](astral-sh/ruff-pre-commit@v0.7.1...v0.7.2)
    
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    pre-commit-ci[bot] authored Nov 4, 2024
    Copy the full SHA
    021561a View commit details
  2. Copy the full SHA
    339609d View commit details

Commits on Nov 6, 2024

  1. Speed up anndata writing speed after define_clonotype_clusters (#556)

    * convert cell_indices str->array dict to a csr matrix before storing the anndata result
    
    * save cell_indices as json format
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * removed unused conversion function
    
    * Update CHANGELOG
    
    ---------
    
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    Co-authored-by: Gregor Sturm <mail@gregor-sturm.de>
    3 people authored Nov 6, 2024
    Copy the full SHA
    a9fe4d1 View commit details

Commits on Nov 14, 2024

  1. [pre-commit.ci] pre-commit autoupdate (#571)

    updates:
    - [github.com/astral-sh/ruff-pre-commit: v0.7.2 → v0.7.3](astral-sh/ruff-pre-commit@v0.7.2...v0.7.3)
    
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    pre-commit-ci[bot] authored Nov 14, 2024
    Copy the full SHA
    90a56fa View commit details

Commits on Nov 20, 2024

  1. [pre-commit.ci] pre-commit autoupdate (#572)

    updates:
    - [github.com/astral-sh/ruff-pre-commit: v0.7.3 → v0.7.4](astral-sh/ruff-pre-commit@v0.7.3...v0.7.4)
    
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    pre-commit-ci[bot] authored Nov 20, 2024
    Copy the full SHA
    088d8c7 View commit details

Commits on Nov 24, 2024

  1. Logoplots (#534)

    * added file with logoplot calculation function and import function name
    
    * added palmotif and IPython asdependencies
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * Restructured logoplot function to use logomaker instead of palmotif; Removed AnnData filter functionality
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * Update of logoplot_cdr3_motif docs
    
    * Add tutorial section about logoplots
    
    * Add ax/fig_kws default arguments
    
    * changed font to logomaker default
    
    * Update src/scirpy/pl/_logoplots.py
    
    Co-authored-by: Gregor Sturm <mail@gregor-sturm.de>
    
    * Update src/scirpy/pl/_logoplots.py
    
    Co-authored-by: Gregor Sturm <mail@gregor-sturm.de>
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * Update keyword arguments
    
    * Add intersphinx
    
    * nitpick ignore
    
    * Update changelog
    
    * Update TCR tutorial
    
    * reorganize tutorial
    
    ---------
    
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    Co-authored-by: Gregor Sturm <mail@gregor-sturm.de>
    3 people authored Nov 24, 2024
    Copy the full SHA
    0d0201a View commit details

Commits on Dec 5, 2024

  1. Fix incompatibility with latest vdjdb release (#578)

    * Fix incompatibility with latest vdjdb release
    
    * Update changelog
    grst authored Dec 5, 2024
    Copy the full SHA
    51df89e View commit details

Commits on Dec 10, 2024

  1. Update publishing workflow docs (#580)

    * Update publishing workflow docs
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    ---------
    
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    grst and pre-commit-ci[bot] authored Dec 10, 2024
    Copy the full SHA
    0144ee3 View commit details
  2. [pre-commit.ci] pre-commit autoupdate (#579)

    updates:
    - [github.com/astral-sh/ruff-pre-commit: v0.7.4 → v0.8.2](astral-sh/ruff-pre-commit@v0.7.4...v0.8.2)
    
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    pre-commit-ci[bot] authored Dec 10, 2024
    Copy the full SHA
    c80fe54 View commit details

Commits on Jan 13, 2025

  1. [pre-commit.ci] pre-commit autoupdate (#582)

    * [pre-commit.ci] pre-commit autoupdate
    
    updates:
    - [github.com/astral-sh/ruff-pre-commit: v0.8.2 → v0.9.1](astral-sh/ruff-pre-commit@v0.8.2...v0.9.1)
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    ---------
    
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    pre-commit-ci[bot] authored Jan 13, 2025
    Copy the full SHA
    581c9e7 View commit details

Commits on Jan 29, 2025

  1. [pre-commit.ci] pre-commit autoupdate (#585)

    * [pre-commit.ci] pre-commit autoupdate
    
    updates:
    - [github.com/astral-sh/ruff-pre-commit: v0.9.1 → v0.9.3](astral-sh/ruff-pre-commit@v0.9.1...v0.9.3)
    
    * Update test-tutorials.yaml
    
    ---------
    
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    Co-authored-by: Gregor Sturm <mail@gregor-sturm.de>
    pre-commit-ci[bot] and grst authored Jan 29, 2025
    Copy the full SHA
    10e260f View commit details

Commits on Jan 30, 2025

  1. Update pyproject.toml (#589)

    * Update pyproject.toml
    
    * Update CHANGELOG.md
    grst authored Jan 30, 2025
    Copy the full SHA
    cdbb0ce View commit details

Commits on Feb 5, 2025

  1. [pre-commit.ci] pre-commit autoupdate (#590)

    updates:
    - [github.com/astral-sh/ruff-pre-commit: v0.9.3 → v0.9.4](astral-sh/ruff-pre-commit@v0.9.3...v0.9.4)
    
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    pre-commit-ci[bot] authored Feb 5, 2025
    Copy the full SHA
    37010e2 View commit details

Commits on Feb 14, 2025

  1. [pre-commit.ci] pre-commit autoupdate (#592)

    updates:
    - [github.com/astral-sh/ruff-pre-commit: v0.9.4 → v0.9.6](astral-sh/ruff-pre-commit@v0.9.4...v0.9.6)
    
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    pre-commit-ci[bot] authored Feb 14, 2025
    Copy the full SHA
    4157ae4 View commit details

Commits on Feb 25, 2025

  1. GPU implementation of hamming distance (#541)

    * take static methods out of tcrdist
    
    * made _tcrdist_mat a normal class method
    
    * parent method NumbaDistanceCalculator extracted
    
    * numba version of hamming distance implemented
    
    * hamming numba tests passed and reference test added
    
    * hamming numba distance calculator implemented and tested
    
    * n_jobs parameter handling done in NumbaDistanceCalculator superclass
    
    * documentation adapted
    
    * removed unnecessary import
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * hamming distance with numba parallelization implemented
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * imports fixed
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * implemented parallelization with n_jobs and n_blocks for hamming and tcrdist distance metrics
    
    * performance optimization for hamming and tcrdist
    
    * more documentation added
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * documentation adapted
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * documentation adapted
    
    * signature of _calc_dist_mat_block changed
    
    * the alphabet for the hamming distance is now the unique characters occuring in all sequences
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * normalized hamming distance added
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * renaming test
    
    * histogram creation for hamming distance added
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * refactored
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * hamming histogram adjustments
    
    * reference test cases added for normalized hamming and hamming histogram
    
    * Update src/scirpy/ir_dist/metrics.py
    
    Co-authored-by: Gregor Sturm <mail@gregor-sturm.de>
    
    * test cases for normalized hamming and hamming histogram adapted
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * docstring for normalized hamming distance and tcrdist distance added
    
    * adapted default parameters and tests for n_jobs and n_blocks
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * test_sequence_dist_all_metrics adaptions
    
    * n_jobs default value set to -1
    
    * docstring of ir_dist for n_jobs adapted
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * docstring change to test cicd pipeline
    
    * docstring for n_jobs of _ir_dist changed
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * docstring for n_jobs of _ir_dist changed
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * moved histogram creation to parent class of hamming distance calculator
    
    * histogram computation adaptions
    
    * test case test_tcrdist_histogram_not_implemented added
    
    * documentation for histogram adapted
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * reformatted doc string
    
    * handling of symmetric matrices with respect to histogram variable changed
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * retrieval of usable cpus for numba adapted
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * more documentation for histogram and (hamming) normalize added
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * added GPUHammingDistanceCalculator
    
    * added test case for gpu hamming distance
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * documentation for GPUHammingDistanceCalculator adapted
    
    * adapted documentation of _tcrdist_mat
    
    * cuda numba experiments
    
    * cupy experiments
    
    * cupy experiments
    
    * scaled cupy to 1 million cells
    
    * sorted sequences by length
    
    * textures used for seqs_mat1 and seqs_mat2
    
    * texture mit up to 100k cells
    
    * sorted seqs with multiple blocks
    
    * scaled textures to 1 million cells
    
    * use char for sequences
    
    * shared memory used
    
    * experiments, run 1 million cells with global memory
    
    * run 1 million cells with only global memory
    
    * refactoring and time measurements
    
    * optimized seqs2mat
    
    * increased result matrix stacking speed
    
    * changed data dtype to int8
    
    * scaled to 1 million cells
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * sort indices of result csr matrix
    
    * refactoring
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * remove test from ci
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * move cupy import to func
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * add GPU test
    
    * rename
    
    * Rename .cirun.yaml to .cirun.yml
    
    * print library versions for debugging
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * data types updated
    
    * refactored
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * Update meta.yaml
    
    * Update meta.yaml
    
    * Update meta.yaml
    
    * removed time measurement prints and added progress bar
    
    * removed cuda synchronize statements used for performance testing
    
    * added parameters gpu_n_blocks and gpu_block_width
    
    * added parameter documentation
    
    * cleaned up hamming kernel
    
    * catch sequence conversion error by retrying with non ascii implementation
    
    * use parameters gpu_n_blocks and gpu_block_width for testing
    
    * adapted documentation about n_blocks
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * adapted error handling for ascii UnicodeError
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * removed reference to :class:`~scirpy.ir_dist.metrics.GPUHammingDistanceCalculator` in documentation
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * WIP: update docs
    
    * Update changelog
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * added an explanation for choosing parameters to GPU hamming class documentation.
    
    * logging.info used instead of print
    
    * Add tutorial for large datasets
    
    * Bump version
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * Added checks for int32 overflow
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * adapted error text of int32 overflow check.
    
    ---------
    
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    Co-authored-by: Gregor Sturm <mail@gregor-sturm.de>
    Co-authored-by: Intron7 <severin.dicks@icloud.com>
    Co-authored-by: Severin Dicks <37635888+Intron7@users.noreply.github.com>
    5 people authored Feb 25, 2025
    Copy the full SHA
    622be74 View commit details
  2. [pre-commit.ci] pre-commit autoupdate (#594)

    updates:
    - [github.com/astral-sh/ruff-pre-commit: v0.9.6 → v0.9.7](astral-sh/ruff-pre-commit@v0.9.6...v0.9.7)
    
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    pre-commit-ci[bot] authored Feb 25, 2025
    Copy the full SHA
    7bb5700 View commit details

Commits on Feb 27, 2025

  1. fix: missing **kwargs in clustermap call (#599)

    * fix: missing **kwargs in clustermap call
    
    * Update changelog
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    ---------
    
    Co-authored-by: Gregor Sturm <mail@gregor-sturm.de>
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    3 people authored Feb 27, 2025
    Copy the full SHA
    eb28d43 View commit details

Commits on Feb 28, 2025

  1. add trademark

    melonora authored Feb 28, 2025
    Copy the full SHA
    0dee2d0 View commit details
  2. Copy the full SHA
    5e2c46b View commit details

Commits on Mar 7, 2025

  1. [pre-commit.ci] pre-commit autoupdate (#600)

    * [pre-commit.ci] pre-commit autoupdate
    
    updates:
    - [github.com/astral-sh/ruff-pre-commit: v0.9.7 → v0.9.9](astral-sh/ruff-pre-commit@v0.9.7...v0.9.9)
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    ---------
    
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    pre-commit-ci[bot] authored Mar 7, 2025
    Copy the full SHA
    0462daf View commit details
  2. Don't run GPU CI by default (#601)

    * Don't run GPU CI by default
    
    * Fix pytest opts
    grst authored Mar 7, 2025
    Copy the full SHA
    bd164aa View commit details

Commits on Mar 10, 2025

  1. Numba version of mutational load (#573)

    * Added mutational_load function to calculate differences between sequence and germline alignment
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * Rewrote mutational_load function based on previous feedback and added function to api.rst
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * Fixed an issue with pre-commit
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * Further optimized mutational_load function and formating of docstring documentation
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * Fixed small issues with the code layout as suggested by grst
    
    * Added a first beta-test case, which revealed some bugs that were also fixed
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * Specified 'except' condition
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * Add notebook section about somatic hypermutation
    
    * Update SHM description text in tutorial
    
    * prototype for numba / per chain version of mutational load function
    
    * update
    
    * WIP
    
    * WIP refactor
    
    * Wrap up implementation
    
    * update changelog
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * Update mutational load docstring
    
    * fix docstring
    
    * Update docstring
    
    * Fix docstring
    
    * WIP tests and tutorial
    
    * Fix tests
    
    * Update tutorial
    
    * Update tutorial
    
    ---------
    
    Co-authored-by: Mario Kanetscheider <m.kanne@ymail.com>
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    Co-authored-by: MKanetscheider <141252989+MKanetscheider@users.noreply.github.com>
    4 people authored Mar 10, 2025
    Copy the full SHA
    8c9b581 View commit details
  2. Bump version in changelog

    grst authored Mar 10, 2025
    Copy the full SHA
    e3554de View commit details

Commits on Mar 11, 2025

  1. [pre-commit.ci] pre-commit autoupdate (#602)

    updates:
    - [github.com/astral-sh/ruff-pre-commit: v0.9.9 → v0.9.10](astral-sh/ruff-pre-commit@v0.9.9...v0.9.10)
    
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    pre-commit-ci[bot] authored Mar 11, 2025
    Copy the full SHA
    b32fd24 View commit details
Showing with 3,726 additions and 543 deletions.
  1. +11 −0 .cirun.yml
  2. +2 −1 .conda/meta.yaml
  3. +3 −3 .github/ISSUE_TEMPLATE/bug_report.md
  4. +3 −3 .github/PULL_REQUEST_TEMPLATE.md
  5. +67 −0 .github/workflows/test-gpu.yaml
  6. +3 −2 .github/workflows/test-tutorials.yaml
  7. +1 −1 .github/workflows/test.yaml
  8. +2 −0 .gitignore
  9. +4 −4 .pre-commit-config.yaml
  10. +313 −251 CHANGELOG.md
  11. +1 −0 LICENSE
  12. +8 −6 README.md
  13. +8 −1 docs/api.rst
  14. +2 −0 docs/conf.py
  15. +14 −13 docs/contributing.md
  16. +1 −1 docs/extensions/typed_returns.py
  17. +30 −4 docs/glossary.rst
  18. +341 −0 docs/references.bib
  19. +2 −0 docs/tutorials.rst
  20. +68 −0 docs/tutorials/large-datasets.md
  21. +237 −183 docs/tutorials/tutorial_3k_tcr.ipynb
  22. +1,184 −0 docs/tutorials/tutorial_5k_bcr.ipynb
  23. +13 −6 pyproject.toml
  24. +26 −3 src/scirpy/datasets/__init__.py
  25. +4 −3 src/scirpy/get/__init__.py
  26. +2 −2 src/scirpy/io/_tracerlib/core.py
  27. +17 −2 src/scirpy/ir_dist/__init__.py
  28. +6 −6 src/scirpy/ir_dist/_clonotype_neighbors.py
  29. +1 −1 src/scirpy/ir_dist/_util.py
  30. +370 −4 src/scirpy/ir_dist/metrics.py
  31. +1 −0 src/scirpy/pl/__init__.py
  32. +1 −1 src/scirpy/pl/_clonotype_imbalance.py
  33. +3 −1 src/scirpy/pl/_clonotypes.py
  34. +115 −0 src/scirpy/pl/_logoplots.py
  35. +6 −1 src/scirpy/pl/_repertoire_overlap.py
  36. +1 −1 src/scirpy/pp/_index_chains.py
  37. +147 −0 src/scirpy/tests/conftest.py
  38. +48 −1 src/scirpy/tests/test_clonotypes.py
  39. +18 −0 src/scirpy/tests/test_ir_dist_metrics.py
  40. +7 −2 src/scirpy/tests/test_ir_query.py
  41. +7 −0 src/scirpy/tests/test_plotting.py
  42. +325 −0 src/scirpy/tests/test_tools.py
  43. +1 −3 src/scirpy/tests/test_util.py
  44. +1 −0 src/scirpy/tl/__init__.py
  45. +46 −15 src/scirpy/tl/_clonotypes.py
  46. +1 −3 src/scirpy/tl/_diversity.py
  47. +10 −7 src/scirpy/tl/_ir_query.py
  48. +217 −0 src/scirpy/tl/_mutational_load.py
  49. +20 −1 src/scirpy/util/__init__.py
  50. +1 −1 src/scirpy/util/graph/__init__.py
  51. +6 −6 src/scirpy/util/graph/_fr_size_aware_layout.py
11 changes: 11 additions & 0 deletions .cirun.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
runners:
- name: aws-gpu-runner
cloud: aws
instance_type: g4dn.xlarge
machine_image: ami-067a4ba2816407ee9
region: eu-north-1
preemptible:
- true
- false
labels:
- cirun-aws-gpu
3 changes: 2 additions & 1 deletion .conda/meta.yaml
Original file line number Diff line number Diff line change
@@ -40,6 +40,7 @@ requirements:
- numba >=0.41.0
- pooch >=1.7.0
- joblib >=1.3.1
- logomaker !=0.8.5

test:
source_files:
@@ -56,7 +57,7 @@ test:
imports:
- scirpy
commands:
- pytest --pyargs scirpy -m "not extra"
- pytest --pyargs scirpy -m "not extra and not gpu"

about:
home: https://scirpy.scverse.org
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -20,9 +20,9 @@ A clear and concise description of what you expected to happen.

**System**

- OS: [e.g. Windows 10]
- Python version [e.g. 3.9]
- Versions of libraries involved [e.g. AnnData 0.8.0, Scirpy 0.12.0]
- OS: [e.g. Windows 10]
- Python version [e.g. 3.9]
- Versions of libraries involved [e.g. AnnData 0.8.0, Scirpy 0.12.0]

**Additional context**
Add any other context about the problem here.
6 changes: 3 additions & 3 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Closes #...

- [ ] CHANGELOG.md updated
- [ ] Tests added (For bug fixes or new features)
- [ ] Tutorial updated (if necessary)
- [ ] CHANGELOG.md updated
- [ ] Tests added (For bug fixes or new features)
- [ ] Tutorial updated (if necessary)
67 changes: 67 additions & 0 deletions .github/workflows/test-gpu.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: GPU-CI

on:
push:
branches: [main]
pull_request:
types:
- labeled
- opened
- synchronize

# Cancel the job if new commits are pushed
# https://stackoverflow.com/questions/66335225/how-to-cancel-previous-runs-in-the-pr-when-you-push-new-commitsupdate-the-curre
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
check:
name: "Triage: Check if GPU tests are allowed to run"
if: (!contains(github.event.pull_request.labels.*.name, 'skip-gpu-ci'))
runs-on: ubuntu-latest
steps:
- uses: flying-sheep/check@v1
with:
success: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'run-gpu-ci') }}
test:
name: GPU Tests
needs: check
runs-on: "cirun-aws-gpu--${{ github.run_id }}"
timeout-minutes: 30

defaults:
run:
shell: bash -el {0}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Nvidia SMI sanity check
run: nvidia-smi

- name: Install Python
uses: actions/setup-python@v5
with:
python-version: "3.11"

- name: Install UV
uses: hynek/setup-cached-uv@v2
with:
cache-dependency-path: pyproject.toml

- name: Install scirpy
run: uv pip install --system -e ".[dev,test,rpack,dandelion,diversity,parasail,cupy]"
- name: Pip list
run: pip list

- name: Run test
run: pytest -m gpu

- name: Remove 'run-gpu-ci' Label
if: always()
uses: actions-ecosystem/action-remove-labels@v1
with:
labels: "run-gpu-ci"
github_token: ${{ secrets.GITHUB_TOKEN }}
5 changes: 3 additions & 2 deletions .github/workflows/test-tutorials.yaml
Original file line number Diff line number Diff line change
@@ -23,6 +23,7 @@ jobs:
tutorial:
- tutorial_3k_tcr.ipynb
- tutorial_io.ipynb
- tutorial_5k_bcr.ipynb
os:
- ubuntu-latest
python:
@@ -41,9 +42,9 @@ jobs:
cache: "pip"
cache-dependency-path: "**/pyproject.toml"

- name: Install test dependencies
- name: Install system dependencies
run: |
python -m pip install --upgrade pip wheel
sudo apt-get install -y libcairo2-dev pkg-config
- name: Install dependencies
run: |
pip install ".[doc]"
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -52,7 +52,7 @@ jobs:
python -m pip install --upgrade pip wheel
- name: Install dependencies
run: |
pip install ${{ matrix.pip-flags }} ".[dev,test,rpack,dandelion,diversity,parasail]"
pip install ${{ matrix.pip-flags }} ".[dev,test]"
- name: Test
env:
MPLBACKEND: agg
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -138,3 +138,5 @@ dmypy.json
.pyre/

.DS_Store

uv.lock
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -2,8 +2,8 @@ fail_fast: false
default_language_version:
python: python3
default_stages:
- commit
- push
- pre-commit
- pre-push
minimum_pre_commit_version: 2.16.0
repos:
- repo: https://github.com/pre-commit/mirrors-prettier
@@ -12,15 +12,15 @@ repos:
- id: prettier
exclude: '^\.conda'
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.3
rev: v0.9.10
hooks:
- id: ruff
types_or: [python, pyi, jupyter]
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format
types_or: [python, pyi, jupyter]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: detect-private-key
- id: check-ast
Loading