Skip to content

Add lapply to your mykmeans function #29

Description

@Alexis-Varin

Hello, currently your infer_tree_structure() function fails on Windows computers if number.cluster parameter is kept on NA because your mykmeans() function which is called from infer_tree_structure() to calculate the number of clusters from k-means only uses mclapply() with a mc.cores parameter of 30. This will trigger the error seen in this issue #3 where mc.cores > 1 is not supported on Windows.

Your lamian_test() function correctly uses lapply() when ncores = 1 so please add the same option to mykmeans() and infer_tree_structure() so that we don't need to manually set the number of clusters (because this triggers indeed only when number.cluster = NA because that's the only parameter where mykmeans() is called).

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