File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
src/methods_expression_correction/resolvi_correction Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 11import anndata as ad
2- import txsim as tx
32import scvi
43import pandas as pd
54import scanpy as sc
6- import scipy
75import numpy as np
86
97## VIASH START
1210par = {
1311 'input_spatial_with_cell_types' : 'resources_test/task_ist_preprocessing/mouse_brain_combined/spatial_with_cell_types.h5ad' ,
1412 'celltype_key' : 'cell_type' ,
15- 'output' : '.. /resolvi_spatial_corrected.h5ad' ,
13+ 'output' : 'temp /resolvi_spatial_corrected.h5ad' ,
1614 'n_hidden' : 32 ,
1715 'encode_covariates' : False ,
1816 'downsample_counts' : True
6664 model = supervised_resolvi .module .model_residuals ,
6765 return_sites = [
6866 'mixture_proportions' , 'mean_poisson' , 'per_gene_background' ,
69- 'diffusion_mixture_proportion' , 'per_neighbor_diffusion' , 'px_r_inv'
67+ 'per_neighbor_diffusion' , 'px_r_inv' #'diffusion_mixture_proportion'
68+ #NOTE: set of strs important: see https://github.com/scverse/scvi-tools/issues/3252#issuecomment-3304041641
7069 ],
7170 num_samples = 20 , return_samples = False , batch_size = 4000 )
7271samples = pd .DataFrame (samples ).T
You can’t perform that action at this time.
0 commit comments