Skip to main content

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.

Fig1

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.

  1. Install R environment (https://cran.r-project.org/)
  2. Create the virtual environment
conda create -n SURF python=3.9   
conda activate SURF   
  1. 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.

  1. Install SURF
pip install spatialsurf

Tutorials

https://github.com/lllsssyyyy/SURF/tree/main/tutorials

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

spatialsurf-1.17.tar.gz (17.7 kB view details)

Uploaded Source

Built Distribution

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

spatialsurf-1.17-py3-none-any.whl (20.3 kB view details)

Uploaded Python 3

File details

Details for the file spatialsurf-1.17.tar.gz.

File metadata

  • Download URL: spatialsurf-1.17.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

Hashes for spatialsurf-1.17.tar.gz
Algorithm Hash digest
SHA256 9aa8606300584a4463d46b13b8f3c83ddc5744a8283fa27bed837c33cd10b128
MD5 2ebd88039647fd4b73ac83059bcd2238
BLAKE2b-256 ecf607386dcdf3ba016e6640700df781291dbfe61f42b6e378a96435f4866dbc

See more details on using hashes here.

File details

Details for the file spatialsurf-1.17-py3-none-any.whl.

File metadata

  • Download URL: spatialsurf-1.17-py3-none-any.whl
  • Upload date:
  • Size: 20.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for spatialsurf-1.17-py3-none-any.whl
Algorithm Hash digest
SHA256 0d48c0f9fd336073b4d2b26bb0b92651f85da5fa70e84d566a1cb9e69bec059f
MD5 a59faf7cc931698976eb5baf2ad5e611
BLAKE2b-256 9017e34ef260348bc7f761a8f17315c20ad72602c38a244593920a91fdb0b416

See more details on using hashes here.

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