Giter Club home page Giter Club logo

viewprops's Introduction

Viewprops README

Shows the same information as the original EEGLAB pop_prop() function with the addition of a scrolling IC activity viewer, percent channel variance accounted for (PVAF), dipole plot (if available), and component label (if available).

Usage

Installation

If you do not have Viewprops installed, install it through the EEGLAB plug-in manager. You can find this in the EEGLAB window under "File"->"Manage EEGLAB extensions"->"Data processing extensions". Once the new window opens, look through the list of plug-ins until you find the "Viewprops" plug-in and mark its checkbox on the left in the column labeled "Install". You will likely have to use the "Next page" button to progress through the list of plug-ins to find Viewprops. Click "Ok" to download the selected plug-ins. You only have to do this once.

Graphical Usage

Once you finish installing Viewprops, of if you already have it installed, you need to load your EEG dataset. With your dataset loaded, open viewprops using the EEGLAB window by clicking on "Plot"->"View extended [channel/component] properties". A new window, shown to the right, will appear allowing you specify some settings:

[Channel/Component] indices to plot

Array of numbers indicating which channels or components to plot.

Spectral options

Cell array of key/value pairs which will be passed on to spectopo().

Erpimage options

Cell array of key/value pairs which will be passed on to erpimage().

Draw events over scrolling [channel/component] activity

A checkbox indicating whether or not to overlay event times and types on top of the scrolling [channel/component] activity.

IC classifier [component properties only]

A drop-down menu listing the available IC classifications. The chosen classifier's IC classification will be plotted.

If you're happy with the settings, click the button labeled "Ok" to plot the grid of channels or components specified. Each channel or component is represented in the grid by a scalp topography with a button above it and, in the case of components with classifications available, the most likely IC category. Clicking on the button will open the extended properties viewer show in the picture at the top of this article.

Command-line Usage

Assuming you have stored your ICA-decomposed EEG dataset in the variable EEG, you can open Viewprops' grid window settings by entering the following into MATLAB's command window:

pop_viewprops(EEG, 0) % for component properties
pop_viewprops(EEG, 1) % for channel properties

If you know what components and settings you want, you may directly plot the grid by entering the following into MATLAB's command window:

pop_viewprops(EEG, 0, component_array, spectopo_options, erpimage_options, scroll_event, classifier_name) % for component properties
pop_viewprops(EEG, 1, component_array, spectopo_options, erpimage_options, scroll_event, classifier_name) % for channel properties

where component_array is an array of integers, spectopo_options is a cell array of key/value pairs of options for spectopo(), erpimage_options is a cell array of key/value pairs of options for erpimage(), scroll_event is a zero or one indicating whether (1) or not (0) to plot event indicators on the scroll plot, and classifier name is the name of the classifier from you wish to use to displace component labels (this must match a field in the structure EEG.etc.ic_classification). You need not enter in all these variables, but if you omit any option, you must omit all the following options as well. For example, if you are okay with the default values for everything after spectopo_options, you may simply enter the following into MATLAB's command window:

pop_viewprops(EEG, 0, component_array, spectopo_options) % for component properties
pop_viewprops(EEG, 1, component_array, spectopo_options) % for channel properties

If you wish to directly access the extended properties settings window, you may do so by entering the following into MATLAB's command window:

pop_prop_extended(EEG, 0) % for component properties
pop_prop_extended(EEG, 1) % for channel properties

Again, if you know what components and settings you want, you may directly plot the extended properties window(s) by entering the following into MATLAB's command window:

pop_prop_extended(EEG, 0, component_array, NaN, spectopo_options, erpimage_options, scroll_event, classifier_name) % for component properties
pop_prop_extended(EEG, 1, component_array, NaN, spectopo_options, erpimage_options, scroll_event, classifier_name) % for channel properties

Additional Capbililities

Warning: This section is only for advanced users as it may break EEGLAB if other, unforseen changes have already been made to EEGLAB.

The Viewprops plugin is written to allow for a drop-in replacement of the original pop_prop() function. Therefore, if you wish to generate the extended properties window when using "Tools"->"Reject data using ICA"->"Reject components by map", simply open the code for the function pop_selectcomps() by entering edit pop_selectcomps and editing line 158 (as of the last edit of this article) to change "pop_prop" to "pop_prop_extended".

viewprops's People

Contributors

dungscout96 avatar lucapton avatar nucleuscub avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

ugobruzadin

viewprops's Issues

The time series' plot is not shown correctly

Hi everyone,
the plots are shown as below:
grafik

I got this graph by using

EEG = iclabel(EEG, 'default');
pop_viewprops(EEG, 0, 1:19) 

and clicking one of the ICs.

Viewprops version: 1.5.4
ICLabel version: 1.3
EEGLAB version: develop

Order of IC components

Hey,

in your documentation, it says that components are ordered by var. accounted. however, when I look at the properties of each component I see values are not ordered from the highest to the lowest.

I used runamica15 (the newest version) for ICA decomposition.

Why possible components are not ordered? Or is the order based on some other values/measures?

Spherical coordformat dipoles are plotted incorrectly

Spherical coordinate dipoles were not plotted correctly on the dipplot panels, e.g. faces_4.set

the call to dipplot currently uses hardcoded 'MNI' coordformat

Instead, take coordformat from EEG.dipfit.coordformat

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.