Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Boostrsa

This library is based on rsatoolbox(https://github.com/rsagroup/rsatoolbox).

The purpose of library is made to boost calcuation speed for searchlight RSA(Representational Similarity Analysis). However, It is still in development, so this library only includes tools for boosting crossnobis distance calculation for constructing RDM(Representational Dissimilartiy Matrix) on the whole brain.

How it works?

Basically, this library uses a Nvidia's GPU instead of CPU for parallel processing. In the searchlight analysis, the data targeted for constructing the RDM in volvxes a voxel and its neighboring voxels. That is well-suited for parallel processing since the calculations for each target are independent of one another. This library utilizes GPU-compatible libraries such as Numba and Cupy to facilitate this process.

Dependencies

To use this library, you need to have a Nvidia's GPU and CUDA. Additionally, this library heavily relies on Cupy and Numba. It is essential to install the appropriate versions of these libraries.

cupy

Cupy is designed to work with specific versions of CUDA. See cupy's guide and install appropriate version in correspond to your system (https://github.com/cupy/cupy).

Please check your cuda version to install cupy.

  • versions
    • cupy-cuda10x (for cuda 10)
    • cupy-cuda11x (for cuda 11)
    • cupy-cuda12x (for cuda 12)

If you installed the cuda10 in your computer, then install cupy-cuda10x. install cupy-cuda10x. ex) pip install cupy-cuda10x

numba

The numba library is a powerful tool that enbales python functions to be compiled to machine code at runtime using the LLVM. One of its key features is the ability to generate native code for different architectures, including CPUs and GPUs, which greatly accelerates the execution of data-heavy and computationally intense python code.

Please see installation guideline of numba (https://numba.pydata.org/numba-doc/latest/user/installing.html).

Pip installation).

  • pip install numba

rsatoolbox

The rsatoolbox is a Python library specifically designed for Representational Similarity Analysis (RSA).

Please see installation guideline of rsatoolbox (https://github.com/rsagroup/rsatoolbox)

  • pip install rsatoolbox

Installation

pip install boostrsa

Tutorial

There are notebooks in the demo directory. Please follow the demos step-by-step. The first demo is for generating simulation data and the second demo is for calculating crossnobis distanced based representational dissimilarity matrices across the whole brain areas. Basically, you are enough to just follow two notebooks - 1_simulated_data.ipynb, 2_searchlight_crossnobis.ipynb

Checked version

These are the latest checked environment.

  • OS
    • Linux, ubuntu - 21.10
  • numba
    • 0.57.0 ~ 0.59.1 is fine to use
  • cupy
    • cupy-cuda11x
    • cupy-cuda12x

Future works

  • Add calculation sources to get neighbors and centers (boost)
  • Add RSA sources (boost)
  • Support other calculation methods except crossnobis distance

Metadata

Release files for boostrsa 0.0.1.dev10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for boostrsa 0.0.1.dev10
File Size Uploaded Provenance Actions
boostrsa-0.0.1.dev10.tar.gz 19.0 kB Without provenance Details for boostrsa-0.0.1.dev10.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for boostrsa 0.0.1.dev10
File Interpreter ABI Platform Actions
boostrsa-0.0.1.dev10-py3-none-any.whl Python 3 none any Details for boostrsa-0.0.1.dev10-py3-none-any.whl

Total release size: 39.4 kB

Release files / boostrsa-0.0.1.dev10.tar.gz

Download URL boostrsa-0.0.1.dev10.tar.gz
Size 19.0 kB
Tags Source
SHA-256 checksum
How to use checksums
736956bb1a0b553b6422c4feffb60e35aad6cd6e935eaba60220fe1c3de8a43e
BLAKE2b-256 checksum
How to use checksums
cde303e3d640df1ffc92c7e9f95d5168a9585fac5ee6b558c6d9f1e0420ec7b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.5

Release files / boostrsa-0.0.1.dev10-py3-none-any.whl

Download URL boostrsa-0.0.1.dev10-py3-none-any.whl
Size 20.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a90844c2bf80dba38e45e698e5a3356f66e9f2878cf5606df0d52e8eb9e67f36
BLAKE2b-256 checksum
How to use checksums
cac725a0afc0b01c9dbbb7f7a4b3695dd0093166b8c4aad810e8fd6f28220598
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.5

Security for boostrsa 0.0.1.dev10

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page