Skip to content

pca_components not forwarded to pca function when calling add_dimred with umap #12

@DriessenA

Description

@DriessenA

I get an error when calling dataset <- add_dimred(dataset, dyndimred::dimred_umap, pca_components=NULL)

My dataset is 70.000 x 23 and I want to perform UMAP. However, when running UMAP it first runs PCA with a default number of components of 50. As I only have 23 features I get the error:
Error in (function (A, nv = 5, nu = nv, maxit = 1000, work = nv + 7, reorth = TRUE, : max(nu, nv) must be strictly less than min(nrow(A), ncol(A))

I tried setting the pca_components to other values or to NULL (as the function dimred checks if pca_components !is.null(pca_components) before running PCA. However, the given argument pca_components is never included when internally calling dimred(expression)

Also tried

dataset <- add_dimred(dataset, dyndimred::dimred_umap, pca_components=10)
dataset <- add_dimred(dataset, dyndimred::dimred_umap)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions