Transfer learning for spatial transcriptomics data and single-cell RNA-seq data.
Project description
stTransfer
Installation
pip install stTransfer
import stTransfer as st
import anndata as ad
sc_adata = ad.read('/home/share/huadjyin/home/zhoutao3/zhoutao3/stTransfer_1/example/data/mouse_testis_sc/preprocess/preprocess.h5ad')
st_adata = ad.read('/home/share/huadjyin/home/zhoutao3/zhoutao3/stTransfer_1/example/data/Mouse_spermatogenesis/processed/Diabetes_Slide-seq_data/Diabetes_1.h5ad')
sc_ann_key = 'celltype'
save_path = '/home/share/huadjyin/home/zhoutao3/zhoutao3/stTransfer_1/example/test/Mouse_spermatogenesis/Diabetes_1'
marker_genes = None
# st.sc_model_train_test(sc_adata, st_adata, sc_ann_key, save_path, marker_genes, finetune_epochs = 200,finutune_pca_dim = 0, gpu = 0) # if cuda
st.sc_model_train_test(sc_adata, st_adata, sc_ann_key, save_path, marker_genes, finetune_epochs = 200,finutune_pca_dim = 0 )
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
stTransfer-1.0.14.tar.gz
(10.7 kB
view hashes)
Built Distribution
Close
Hashes for stTransfer-1.0.14-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d867166d85d0a565bf00b0cc734f8a0535805738fe402e0f3085911eb36474de |
|
MD5 | ea9c37d4ceb47e6e0474e0e4c1fa6acf |
|
BLAKE2b-256 | 55ec17740c8e8a57b6395facf13d4700179397470cae3dbee2b0d95183ffd17d |