Channels to include. Note that all channels selected must have the same
type. Slices and lists of integers will be interpreted as channel indices.
In lists, channel name strings (e.g. ['Fp1','Fp2']) will pick the given
channels. Can also be the string values “all” to pick all channels, or
“data” to pick data channels. "eeg" (default) will pick all eeg
channels. Note that channels in info['bads'] will be included if their
names or indices are explicitly provided.
Whether to omit bad segments from the data before fitting. If True
(default), annotated segments whose description begins with 'bad' are
omitted. If False, no rejection based on annotations is performed.
Sets the verbosity level. The verbosity increases gradually between "CRITICAL",
"ERROR", "WARNING", "INFO" and "DEBUG". If None is provided, the
verbosity is set to "WARNING". If a bool is provided, the verbosity is set to
"WARNING" for False and to "INFO" for True.
Channels to include. Slices and lists of integers will be interpreted as
channel indices. In lists, channel type strings (e.g., ['meg','eeg']) will pick channels of those types, channel name strings (e.g.,
['MEG0111','MEG2623'] will pick the given channels. Can also be the
string values 'all' to pick all channels, or 'data' to pick
data channels. None (default) will pick all channels. Note that
channels in info['bads']will be included if their names or indices
are explicitly provided.
List of bool of length n_clusters.
True will invert map polarity, while False will have no effect.
If a bool is provided, it is applied to all maps.
Notes
Operates in-place.
Inverting polarities has no effect on the other steps of the analysis as
polarity is ignored in the current methodology. This function is only used for
tuning visualization (i.e. for visual inspection and/or to generate figure for
an article).
Either None to create a new figure or axes (or an array of axes) on which the
topographic map should be plotted. If the number of microstates maps to plot is
≥1, an array of axes of size n_clusters should be provided.
Sets the verbosity level. The verbosity increases gradually between "CRITICAL",
"ERROR", "WARNING", "INFO" and "DEBUG". If None is provided, the
verbosity is set to "WARNING". If a bool is provided, the verbosity is set to
"WARNING" for False and to "INFO" for True.
Channels to include. Note that all channels selected must have the same
type. Slices and lists of integers will be interpreted as channel indices.
In lists, channel name strings (e.g. ['Fp1','Fp2']) will pick the given
channels. Can also be the string values “all” to pick all channels, or
“data” to pick data channels. None (default) will pick all channels
used during fitting (e.g., self.info['ch_names']). Note that channels in
info['bads'] will be included if their names or indices are explicitly
provided.
Number of samples used for the half window size while smoothing labels. The
half window size is defined as window_size=2*half_window_size+1.
It has no effect if factor=0 (default). Default to 1.
Minimum segment length (in samples). If a segment is shorter than this
value, it will be recursively reasigned to neighbouring segments based on
absolute spatial correlation.
Whether to omit bad segments from the data before fitting. If True
(default), annotated segments whose description begins with 'bad' are
omitted. If False, no rejection based on annotations is performed.
Sets the verbosity level. The verbosity increases gradually between "CRITICAL",
"ERROR", "WARNING", "INFO" and "DEBUG". If None is provided, the
verbosity is set to "WARNING". If a bool is provided, the verbosity is set to
"WARNING" for False and to "INFO" for True.
Microstate sequence derivated from instance data. Timepoints are labeled
according to cluster centers number: 0 for the first center, 1 for
the second, etc.. -1 is used for unlabeled time points.
Fitted clustering algorithm use as template for ordering optimization. For
more details about the current implementation, check the
pycrostates.cluster.utils.optimize_order() documentation.
A montage containing channel positions. If a string or
DigMontage is
specified, the existing channel information will be updated with the
channel positions from the montage. Valid strings are the names of the
built-in montages that ship with MNE-Python; you can list those via
mne.channels.get_builtin_montages().
If None (default), the channel positions will be removed from the
Info.
Whether to use a lookup table to match unrecognized channel location names
to their known aliases. If True, uses the mapping in
mne.io.constants.CHANNEL_LOC_ALIASES. If a dict is passed, it
will be used instead, and should map from non-standard channel names to
names in the specified montage. Default is False.
Added in version 0.23.
on_missing‘raise’ | ‘warn’ | ‘ignore’
Can be 'raise' (default) to raise an error, 'warn' to emit a
warning, or 'ignore' to ignore when channels have missing coordinates.
Control verbosity of the logging output. If None, use the default
verbosity level. See the logging documentation and
mne.verbose() for details. Should only be passed as a keyword
argument.
Only EEG/sEEG/ECoG/DBS/fNIRS channels can have their positions set using
a montage. Other channel types (e.g., MEG channels) should have
their positions defined properly using their data reading
functions.
Warning
Applying a montage will only set locations of channels that exist
at the time it is applied. This means when
re-referencing
make sure to apply the montage only after calling
mne.add_reference_channels()