A self-supervised deep learning method for reference-free deconvolution.
Project description
SURF
A self-supervised deep learning method for reference-free deconvolution. The overall approach is detailed in the official paper out in xxx.
Data input
df_expr: (dataframe), column names: gene names, shape: (n_spots, n_genes). The gene expression of ST data.
df_pos: (dataframe), column names: ‘x’, ‘y’, shape: (n_spots, 2). The position data of ST data.
barcodes: (list), len: n_spots. The barcodes of ST data.
Installation
We have tested the installation process under ubuntu 22.04, R 3.6.3, and torch 1.11+cuda 11.2.
- Install R environment (https://cran.r-project.org/)
- Create the virtual environment
conda create -n SURF python=3.9
conda activate SURF
- Install Pytorch (https://pytorch.org/), please choose the suitable torch version according to your cuda version.
pip install torch==1.11.0+cu113 torchvision==0.12.0+cu113 torchaudio==0.11.0 --extra-index-url https://download.pytorch.org/whl/cu113
Note: The installation command shown above is suitable for our cuda version and is provided as an example only. Please refer to the instructions at [https://pytorch.org/get-started/previous-versions/] to find the installation command appropriate for your cuda version.
- Install SURF
pip install spatialsurf
Tutorials
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file spatialsurf-1.8.tar.gz.
File metadata
- Download URL: spatialsurf-1.8.tar.gz
- Upload date:
- Size: 17.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.23
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00e712f95cd77cc39690a80bdfbe237d7326a2bb2ff334a17442d8c47d3a7884
|
|
| MD5 |
7511574efac98b6ad6a4fbe51f5e718e
|
|
| BLAKE2b-256 |
d37bee53e645f8964decc393d77e2f0467a8e61614ce55743529b118c17427b0
|
File details
Details for the file spatialsurf-1.8-py3-none-any.whl.
File metadata
- Download URL: spatialsurf-1.8-py3-none-any.whl
- Upload date:
- Size: 20.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.23
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe55e0c0e6f8966c223acaeef0856c6b7f9e0f12f5ff54d11016969bc498dac4
|
|
| MD5 |
62adb08e4909380f9bb05a6e3923eaf4
|
|
| BLAKE2b-256 |
642915d302aacc557f31455ff4e6ff71bbbe907b44d6ab89c39b643ff31b4bca
|