Skip to content

pamRespectsDendro parameter error #12

@daniel-spies

Description

@daniel-spies

Hi there, thanks for the great tool!

I just wanted to report that if the pamRespectsDendro is set to false cutreeHybrid crashes as it seems to not find df_apply even thought it's loaded when importing dynamicTreeCut

from dynamicTreeCut.dynamicTreeCut import cutreeHybrid
clusters = cutreeHybrid(link, distM=distance, minClusterSize=min_module_size, pamRespectsDendro=False)['labels'] 

will result in the following error:

..cutHeight not given, setting it to 0.8541350079439015  ===>  99% of the (truncated) height range in dendro.
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/spies.daniel/.conda/envs/cellrank/lib/python3.9/site-packages/dynamicTreeCut/dynamicTreeCut.py", line 775, in cutreeHybrid
    nearest = df_apply.apply(np.argmin, UnassdToClustDist, 1)
NameError: name 'df_apply' is not defined

apparently this is linked to potential NaNs as with another dataset it actually worked without any fuss

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions