Skip to content
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 'subset_list' is not defined #124

Open
w1973145618 opened this issue Mar 28, 2024 · 1 comment
Open

NameError: name 'subset_list' is not defined #124

w1973145618 opened this issue Mar 28, 2024 · 1 comment

Comments

@w1973145618
Copy link

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
plot_metadata(
cistopic_obj,
reduction_name='UMAP',
variables=['log10_unique_fragments_count', 'tss_enrichment', 'Doublet_scores_fragments', 'fraction_of_fragments_in_peaks'],
target='cell', num_columns=4,
text_size=10,
dot_size=5)

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)
566 plt.subplot(num_rows, num_columns, i)
567 i = i + 1
568 plt.scatter(
569 embedding.iloc[o, 0],
570 embedding.iloc[o, 1],
--> 571 c=subset_list(var_data, o),
572 cmap=cmap,
573 s=dot_size,
574 alpha=alpha,
575 )
576 plt.xlabel(embedding.columns[0])
577 plt.ylabel(embedding.columns[1])

NameError: name 'subset_list' is not defined

Expected behavior
I reinstalled pycisTopic yesterday to fix a bug: NameError: name ‘Tuple’ is not defined, but now I’ve encountered a new bug.

@SeppeDeWinter
Copy link
Collaborator

Hi @w1973145618

Yes, that was my bad. It should be fixed now 284c5a5.

Could you try reinstalling?

All the best,

Seppe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants