Skip to content

Error in if (poi_cols != n_poi) { : argument is of length zero #16

@mmigl

Description

@mmigl

Hi, I’m trying to use WaveICA to remove batch effects from my MSI data (rows = samples, columns = m/z features, cells = intensities). All samples were processed in two batches and there are no additional groups. When I run res <- waveica(df_log, batch = batch) with everything else left at its defaults, it starts “Decomposing…” and “Performing matrix factorization…” but then fails with Error in if (poi_cols != n_poi) { : argument is of length zero. My batch vector has the same length as nrow(df_log) and has two levels; the data are numeric and non-empty. It looks like the error is coming from R2() inside normFact() when it tries to compare poi_cols and n_poi. Could you advise on the correct way to call waveica() in this simple case, or what input/argument changes are needed to avoid this error?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions