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

HDBSCAN TypeError when binning contigs #18

Open
pabloati opened this issue Jul 26, 2023 · 0 comments
Open

HDBSCAN TypeError when binning contigs #18

pabloati opened this issue Jul 26, 2023 · 0 comments

Comments

@pabloati
Copy link

Hi,

I have been trying to run LRBinner on a metagenomics dataset from ONT reads. I first run it just for the reads and it worked perfectly. However, when I try to bin the contigs created by metaFlye, I get the following error when the HDBSCAN is running:

2023-07-26 09:59:54,654 - INFO - Clustering using HDBSCAN running
Traceback (most recent call last):
File "/home/metac/bin/lrbinner", line 203, in
main()
File "/home/metac/bin/lrbinner", line 185, in main
pipelines.run_contig_binning(args)
File "/home/metac/Programs/LRBinner/mbcclr_utils/pipelines.py", line 239, in run_contig_binning
cluster_utils.perform_contig_binning_HDBSCAN(
File "/home/metac/Programs/LRBinner/mbcclr_utils/cluster_utils.py", line 494, in perform_contig_binning_HDBSCAN
labels = HDBSCAN(min_cluster_size=250).fit_predict(latent)
File "/home/metac/anaconda3/envs/snakemake/envs/lrbinner/lib/python3.10/site-packages/hdbscan/hdbscan_.py", line 1243, in fit_predict
self.fit(X)
File "/home/metac/anaconda3/envs/snakemake/envs/lrbinner/lib/python3.10/site-packages/hdbscan/hdbscan_.py", line 1205, in fit
) = hdbscan(clean_data, **kwargs)
File "/home/metac/anaconda3/envs/snakemake/envs/lrbinner/lib/python3.10/site-packages/hdbscan/hdbscan_.py", line 884, in hdbscan
tree_to_labels(
File "/home/metac/anaconda3/envs/snakemake/envs/lrbinner/lib/python3.10/site-packages/hdbscan/hdbscan
.py", line 80, in _tree_to_labels
labels, probabilities, stabilities = get_clusters(
File "hdbscan/_hdbscan_tree.pyx", line 659, in hdbscan._hdbscan_tree.get_clusters
File "hdbscan/_hdbscan_tree.pyx", line 733, in hdbscan._hdbscan_tree.get_clusters
TypeError: 'numpy.float64' object cannot be interpreted as an integer

Could you give me some insight on what may be happening?

Thank you in advance,
Pablo

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

1 participant