Skip to main content

A re-implementation of the hotspotsc package using wrappers around Rust code.

Reason this release was yanked:

Has an erroneous import from hotspotsc which is not a dependency

Project description

sc_simvar

A re-implementation of the hotspotsc v1.1.1 Python package using Rust for the computationally intensive portions.

Not all code from hotspotsc has been translated to Rust, but all code has been localized.

All functions (Rust and Python) are tested to have the exact same output as Hotspotsc for the same input data.

Performance

Using simulated data that varied in the number of genes, cells, and dimensions I ran the pipeline varying whether approx_neighbors or the weighted_graph were used when calculating the knn graph. For the local correlations I used half the number of genes to calculate the correlations on.

Across the 108 total simulations performed the mean speed up of SCSimVar over Hotspot was: 3x.

Summary of benchmarking results:

image

Machine specs:

Model Identifier: MacBookPro18,3
Total Number of Cores: 8 (6 performance and 2 efficiency)
Memory: 16 GB
System Version: macOS 14.7.4 (23H420)
Kernel Version: Darwin 23.6.0
Secure Virtual Memory: Enabled
Memory: 16 GB

rustc: 1.85.0 (4d91de4e4 2025-02-17)
Python: 3.10.14

Installation

=== "pip"

```
pip install --extra-index-url https://pypi.cedar.roche.com sc_simvar
```

=== "uv"

```
uv tool install --extra-index-url https://pypi.cedar.roche.com sc_simvar
```

Usage

The SCSimVar class of this package is a direct replacement for the Hotspot class of hotspotsc.

from sc_simvar import SCSimVar as Hotspot

# Your old code here, no changes needed.

If you run into a problem with SCSimVar compared to Hotspot please let me know!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sc_simvar-0.3.0rc0.tar.gz (43.5 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

sc_simvar-0.3.0rc0-cp313-cp313-macosx_11_0_arm64.whl (526.9 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

sc_simvar-0.3.0rc0-cp313-cp313-macosx_10_12_x86_64.whl (538.8 kB view details)

Uploaded CPython 3.13macOS 10.12+ x86-64

sc_simvar-0.3.0rc0-cp312-cp312-macosx_11_0_arm64.whl (527.5 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

sc_simvar-0.3.0rc0-cp312-cp312-macosx_10_12_x86_64.whl (539.4 kB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

sc_simvar-0.3.0rc0-cp311-cp311-macosx_11_0_arm64.whl (530.0 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

sc_simvar-0.3.0rc0-cp311-cp311-macosx_10_12_x86_64.whl (542.0 kB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

sc_simvar-0.3.0rc0-cp310-cp310-macosx_11_0_arm64.whl (529.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

sc_simvar-0.3.0rc0-cp310-cp310-macosx_10_12_x86_64.whl (541.6 kB view details)

Uploaded CPython 3.10macOS 10.12+ x86-64

File details

Details for the file sc_simvar-0.3.0rc0.tar.gz.

File metadata

  • Download URL: sc_simvar-0.3.0rc0.tar.gz
  • Upload date:
  • Size: 43.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for sc_simvar-0.3.0rc0.tar.gz
Algorithm Hash digest
SHA256 1c60c810f0025d44acf9dd51523a6fbb4f72dd9dabddbd413b270365143ef6cd
MD5 02d6d4fce26647738b3c42346dae4311
BLAKE2b-256 fd21c9357e9315f1e8891c071f059c2cae36263e9c4f99cd236890b3738b7fb1

See more details on using hashes here.

Provenance

The following attestation bundles were made for sc_simvar-0.3.0rc0.tar.gz:

Publisher: ci.yml on Genentech/sc_simvar

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sc_simvar-0.3.0rc0-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for sc_simvar-0.3.0rc0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e2d978bf443f6acf218e988fa640c5e6f8117ffde85f2a36d2829f9e6e3fe663
MD5 722c84b4d2e723519b16016acea0f6c5
BLAKE2b-256 f24520a3b270dfb3ac0835880006b8052168e9cf8df627d988bec4d494caa09e

See more details on using hashes here.

Provenance

The following attestation bundles were made for sc_simvar-0.3.0rc0-cp313-cp313-macosx_11_0_arm64.whl:

Publisher: ci.yml on Genentech/sc_simvar

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sc_simvar-0.3.0rc0-cp313-cp313-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for sc_simvar-0.3.0rc0-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 6d99918e60cec9216cfb653d59c1de2d5a84f324b6f635dd14b89d5487f65b81
MD5 2f86a15e675db8816e22995c9157112a
BLAKE2b-256 cda94034f8facd7bfc01883170cdfce26be64c993a3a11bf02b5ef57bc54f28d

See more details on using hashes here.

Provenance

The following attestation bundles were made for sc_simvar-0.3.0rc0-cp313-cp313-macosx_10_12_x86_64.whl:

Publisher: ci.yml on Genentech/sc_simvar

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sc_simvar-0.3.0rc0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for sc_simvar-0.3.0rc0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 69b93e098e756d1f3c94df642a228f6562a961d5d2f50d6b9d0891215139e73d
MD5 48b08225802807b06c5b7b99705f0364
BLAKE2b-256 53a9176f6dd92141072a517bc4d65bca91c4a3b6d17226f5b92561daeb78526e

See more details on using hashes here.

Provenance

The following attestation bundles were made for sc_simvar-0.3.0rc0-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: ci.yml on Genentech/sc_simvar

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sc_simvar-0.3.0rc0-cp312-cp312-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for sc_simvar-0.3.0rc0-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 817072d426eae6940d0d8905bb9638d8a8f4f68e075c298fd93ea3171f57d682
MD5 3c853f01023846b22d899dfdd9bee66c
BLAKE2b-256 c8c4abed8e4d0fba6f9f10216a2a3db8b80e553b0ad352102394a61a8d6f8d7e

See more details on using hashes here.

Provenance

The following attestation bundles were made for sc_simvar-0.3.0rc0-cp312-cp312-macosx_10_12_x86_64.whl:

Publisher: ci.yml on Genentech/sc_simvar

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sc_simvar-0.3.0rc0-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for sc_simvar-0.3.0rc0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4a7f1830afd22da0ccd09a7f77f4fc75b1696cc1cc8666ed023590f4b2436da1
MD5 0c8a92aaf27657c65f4bd364a3cb15ae
BLAKE2b-256 522d09bb396c47a51de28dbd561341fd028c7fbe3e64599b9717767ecf45ec4a

See more details on using hashes here.

Provenance

The following attestation bundles were made for sc_simvar-0.3.0rc0-cp311-cp311-macosx_11_0_arm64.whl:

Publisher: ci.yml on Genentech/sc_simvar

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sc_simvar-0.3.0rc0-cp311-cp311-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for sc_simvar-0.3.0rc0-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 bfa40334fb664c5c3d1e4338ceb45b3c6e756ed35d6479c615cee7ad43da6221
MD5 c0c334e8598580799403756c4569d48d
BLAKE2b-256 5d238e82acd9fa8148331adce568c1f6bd548d0285adb6fc9ec6a44b2e7a1996

See more details on using hashes here.

Provenance

The following attestation bundles were made for sc_simvar-0.3.0rc0-cp311-cp311-macosx_10_12_x86_64.whl:

Publisher: ci.yml on Genentech/sc_simvar

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sc_simvar-0.3.0rc0-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for sc_simvar-0.3.0rc0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1cbc470a0a0186804e7e5eb015b77198742e8a1e34b4404663df7fea1a41fff1
MD5 6756e5fe91ba1e62e18dbef488a21db2
BLAKE2b-256 d7fed7891b9165e6230728719d291802abd2fb846a2fef72a94ab84489439506

See more details on using hashes here.

Provenance

The following attestation bundles were made for sc_simvar-0.3.0rc0-cp310-cp310-macosx_11_0_arm64.whl:

Publisher: ci.yml on Genentech/sc_simvar

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sc_simvar-0.3.0rc0-cp310-cp310-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for sc_simvar-0.3.0rc0-cp310-cp310-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 6c9aac6ce54fd0df344d165111c847a749201db28d4f43c1e31158e573cda573
MD5 61f83782564ce3f1d97fa443bdbad647
BLAKE2b-256 a092be5217f75d46ad6592faa89084f34efc8d3b63dd500743f51b029366b1e4

See more details on using hashes here.

Provenance

The following attestation bundles were made for sc_simvar-0.3.0rc0-cp310-cp310-macosx_10_12_x86_64.whl:

Publisher: ci.yml on Genentech/sc_simvar

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page