Skip to content

Commit

Permalink
fix parallel = False
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperBianC committed Jan 16, 2024
1 parent 4cc9c72 commit 523838c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scMulan/scMulan.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,8 @@ def get_cell_types_and_embds_for_adata(self, parallel = False, n_process = None,
results = self.process_data_in_parallel(self.cell_type_and_embd_process_subdata, n_process, save_dir)
else:
results = []
for i in tqdm(range(self.adata.n_obs), desc="⏳ Collecting cell embeddings for each cell"):
ct, hidden = self.cell_type_and_embd_process_subdata(i, self.adata_matrix, **kwargs)
for idx in tqdm(self.adata.obs_names, desc="⏳ Collecting cell embeddings for each cell"):
ct, hidden = self.get_cell_type_and_embd(idx, self.adata_matrix, **kwargs)
results.append([ct, hidden])

cell_types = [pair[0] for pair in results]
Expand Down

0 comments on commit 523838c

Please sign in to comment.