FAQ and Troubleshooting¶
Where can I find a full end-to-end example?¶
See Quickstart Notebook (HTML) for a full workflow from input loading through plotting.
Run Quickstart in Binder to run this workflow in the browser without local setup.
I get "Matrix labels must be unique"¶
Your DataFrame index has duplicate labels. Ensure the row labels are unique before creating a Matrix.
I get "Matrix values must be numeric"¶
The DataFrame contains non-numeric values. Convert columns to numeric or filter invalid rows.
I get "No annotation terms overlap matrix labels"¶
None of the annotation labels are present in the matrix. Double-check your identifier system and ensure labels match exactly.
I get "min_cluster_size exceeds N"¶
min_cluster_size is larger than the number of rows in the matrix. Lower the value or analyze fewer items.
I get an empty enrichment table¶
Common causes:
min_overlapis too high.- Terms are filtered out because they do not overlap with the matrix.
- Your annotations are too sparse or the matrix is too small.
Clustering is slower than expected¶
When optimal_ordering=False, HiMaLAYAS uses fastcluster if installed and otherwise falls back to SciPy linkage. Installing the speed extra can improve clustering speed in this mode.
When optimal_ordering=True, SciPy optimal ordering is used and can be slower on larger matrices.
Compressed labels differ across environments¶
Results.cluster_labels(label_mode="compressed") uses NLTK tokenization/lemmatization when available and falls back to regex tokenization when NLTK resources are unavailable.
Install the text extra to enable NLTK support:
The plotter raises "Results has no attached ClusterLayout"¶
Make sure you called Analysis.finalize() before plotting. The plotter needs layout metadata.
Cluster labels look crowded¶
Try:
- Reducing
max_wordsinplot_cluster_labels. - Enabling
wrap_text=Truewith a smallerwrap_width. - Increasing figure size or shrinking font size.
I called plot_dendrogram_condensed(...) but no figure appears¶
plot_dendrogram_condensed(...) returns a CondensedDendrogramPlot handle. Call .show() to display it or .save(...) to write it to disk.
If you still have issues, open an issue in the repository with a minimal reproducible example.