My understanding is that the int() function in python will round down fractions to the nearest integer. So although the params.cluster_sel_epsilon may be set to 0.5, int(0.5) will become 0.
This may be misleading if anyone attempt to configure the params.cluster_sel_epsilon option as it will always be rounded down.
Hi, I've been reading through the implementation of NanoCLUST to get some ideas for clustering my own nanopore data.
I have found a potential bug with the
cluster_sel_epsilon
option at the hdbscan clustering step. The line here: https://github.com/genomicsITER/NanoCLUST/blob/9364ddcc96d7f90c34e97c4baa858835c9b0a943/templates/umap_hdbscan.py#L23My understanding is that the
int()
function in python will round down fractions to the nearest integer. So although theparams.cluster_sel_epsilon
may be set to0.5
,int(0.5)
will become0
.This may be misleading if anyone attempt to configure the
params.cluster_sel_epsilon
option as it will always be rounded down.