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-0.6.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

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

spatialsurf-0.6-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: spatialsurf-0.6.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for spatialsurf-0.6.tar.gz
Algorithm Hash digest
SHA256 940a13880a937a3cc4ce7672e0b63dc16b2394ff74b33fe01e63a5b2f3b187e9
MD5 a1f28755e138fa2fddf39c278513b1c6
BLAKE2b-256 5f42833d5d9640b967777a4beb4fd4cc79b4811767fa2458fbc8249742ccafbd

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for spatialsurf-0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 67bceba79c3d08f4fca0e4249c14033069a685e3a635bdfc53991c1240e88ef2
MD5 bb072bb1c98633951fc9fcf46968ca91
BLAKE2b-256 e9e90894a4da2314124c891ed89dca80354028e536d2c0b8c1413e4d5e1629f8

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