-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NameError: name 'Tuple' is not defined #123
Comments
Hi @w1973145618 I fixed this error some days ago, 5416709 Can you try reinstalling pycisTopic? All the best, Seppe |
Dear Seppe: New bug1:Describe the bug To Reproduce Error output File ~/anaconda3/Git/pycisTopic/src/pycisTopic/clust_vis.py:571, in plot_metadata(cistopic_obj, reduction_name, variables, target, remove_nan, show_label, show_legend, cmap, dot_size, text_size, alpha, seed, color_dictionary, figsize, num_columns, selected_features, save) NameError: name 'subset_list' is not defined New bug2:Describe the bug To Reproduce Error output File ~/anaconda3/Git/pycisTopic/src/pycisTopic/clust_vis.py:823, in plot_imputed_features(cistopic_obj, reduction_name, imputed_data, features, scale, cmap, dot_size, alpha, selected_cells, figsize, num_columns, save) NameError: name 'sparse' is not defined |
Hi @w1973145618 Yes that was my bad as well. It should be fixed now: 284c5a5. Can you try reinstalling? All the best, Seppe |
Describe the bug
To Reproduce
imputed_acc_obj = impute_accessibility(
cistopic_obj,
selected_cells=None,
selected_regions=None,
scale_factor=10**6
)
Error output
NameError Traceback (most recent call last)
Cell In[66], line 3
1 from typing import Tuple
----> 3 imputed_acc_obj = impute_accessibility(
4 cistopic_obj,
5 selected_cells=None,
6 selected_regions=None,
7 scale_factor=10**6
8 )
File ~/anaconda3/Git/pycisTopic/src/pycisTopic/diff_features.py:387, in impute_accessibility(cistopic_obj, selected_cells, selected_regions, scale_factor, chunk_size, project)
377 topic_region = topic_region.to_numpy().astype(np.float32)
379 log.info("Imputing region accessibility")
381 def calculate_imputed_accessibility(
382 topic_region: np.ndarray,
383 cell_topic: np.ndarray,
384 region_names: list,
385 scale_factor: Optional[int],
386 chunk_size: int
--> 387 ) -> Tuple[np.ndarray, list]:
388 """
389 Calculate imputed accessibility in chunks of chunk_size.
390
(...)
411
412 """
413 output_chunk_end = 0
The text was updated successfully, but these errors were encountered: