@@ -117,9 +117,9 @@ def run_cellsweep(counts_dir, out_dir, threads=2, kwargs=None):
117117 cellsweep_counts_dir = os .path .join (out_dir , "counts_swept" )
118118 cellsweep_adata_path = os .path .join (cellsweep_counts_dir , "swept_adata.h5ad" )
119119
120- matrix_path = os .path .join (counts_dir , "counts_unfiltered" , " cells_x_genes.mtx" )
121- barcodes_path = os .path .join (counts_dir , "counts_unfiltered" , " cells_x_genes.barcodes.txt" )
122- genes_path = os .path .join (counts_dir , "counts_unfiltered" , " cells_x_genes.genes.names.txt" )
120+ matrix_path = os .path .join (counts_dir , "cells_x_genes.mtx" )
121+ barcodes_path = os .path .join (counts_dir , "cells_x_genes.barcodes.txt" )
122+ genes_path = os .path .join (counts_dir , "cells_x_genes.genes.names.txt" )
123123 adata = import_matrix_as_anndata (matrix_path , barcodes_path , genes_path )
124124 # adata = cellsweep.utils.read_kb_mtx_as_adata(counts_dir)
125125
@@ -129,6 +129,10 @@ def run_cellsweep(counts_dir, out_dir, threads=2, kwargs=None):
129129
130130 # add celltypes
131131 # adata = cs_utils.determine_cell_types(adata, model_pkl=model_pkl, filter_empty=True, expected_cells=expected_cells, celltypist_convert=celltypist_convert, celltypist_map_file=celltypist_map_file, verbose=verbose)
132+
133+ import numpy as np #!!! erase
134+ celltypes = ["celltype1" , "celltype2" , "celltype3" ] #!!! erase
135+ adata .obs ["celltype" ] = np .random .choice (celltypes , size = adata .n_obs ) #!!! erase
132136
133137 _ = cellsweep .denoise_count_matrix (
134138 adata = adata ,
0 commit comments