Skip to content

Reversed scalp maps in pop_clustedit when using PCA clustering #945

Description

@cg091

Hi,

I am using EEGLAB 2024.0 on MATLAB R2024a (Windows) and I noticed that scalp maps appear reversed (inverted polarity) for some components when viewing clusters in pop_clustedit after running PCA clustering.

Is there a built-in way to align component polarities to the cluster mean, either in pop_preclust or pop_clustedit? The "Absolute values" option in pop_preclust helps for clustering but does not fix the display polarity.

To reproduce the issue:

  1. Create a STUDY with multiple subjects and conditions
  2. Precompute measures (ERPs + scalp maps)
  3. Run pre-clustering (pop_preclust) using ERPs and scalp maps
  4. Cluster components
  5. Open cluster editor (pop_clustedit) and inspect scalp maps
Image

Thank you!

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