NiBAx.core.model.datamodel

contact: software@cbica.upenn.edu Copyright (c) 2018 University of Pennsylvania. All rights reserved. Use of this source code is governed by license located in license file: https://github.com/CBICA/BrainChart/blob/main/LICENSE

Module Contents

Classes

DataModel

This class holds the data model.

Attributes

logger

NiBAx.core.model.datamodel.logger[fuente]
class NiBAx.core.model.datamodel.DataModel[fuente]

Bases: PyQt5.QtCore.QObject

This class holds the data model.

data_changed[fuente]
SetMUSEDictionaries(self, MUSEDictNAMEtoID, MUSEDictIDtoNAME, MUSEDictDataFrame)[fuente]

Setter for MUSE dictionary

SetDerivedMUSEMap(self, DerivedMUSEMap)[fuente]

Setter for Derived MUSE dictionary

SetDataFilePath(self, p)[fuente]

Setter

SetHarmonizationModelFilePath(self, p)[fuente]

Setter

GetDataFilePath(self)[fuente]

Return data file path

GetHarmonizationModelFilePath(self)[fuente]

Return harmonization model file path

GetMUSEDictionaries(self)[fuente]

Get the MUSE dictionaries to map from ID to name and vice-versa

GetDerivedMUSEMap(self)[fuente]

Get the derived MUSE dictionary to map from SINGLE to DERIVED ROIs

GetMUSEDictDataFrame(self)[fuente]

Get the MUSE dictionaries to map from ID to name and vice-versa

SetData(self, d)[fuente]

Setter for data

SetHarmonizationModel(self, m)[fuente]

Setter for neuroHarmonize model

SetSPAREModel(self, BrainAgeModel, ADModel)[fuente]

Setter for SPARE-* models

GetCompleteData(self)[fuente]

Returns complete data.

GetModel(self)[fuente]

Returns harmonization model.

GetMaxAgeOfMUSEHarmonizationModel(self)[fuente]

Returns model age maximum.

GetMinAgeOfMUSEHarmonizationModel(self)[fuente]

Returns model age minimum.

GetNormativeRange(self, roi)[fuente]

Return normative range

GetData(self, roi, hue)[fuente]

Returns a subset of data needed for plot. Takes as parameters the roi and hue for the plot. Since the plot always uses “Age” for X axis, this is always returned.

IsValidData(self, data=None)[fuente]

Checks if the data is valid or not.

IsValidHarmonization(self)[fuente]

Checks if the harmonization model is valid or not.

IsValidSPARE(self)[fuente]

Checks if the SPARE-* model is valid or not.

GetColumnHeaderNames(self)[fuente]

Returns all header names for all columns in the dataset.

GetColumnDataTypes(self)[fuente]

Returns all header names for all columns in the dataset.

Reset(self)[fuente]
GetDataStatistics(self)[fuente]

Returns a dictionary of data statistics. Currently returned stats: # Observation, # Participants # Age [min,max] # Sex [M,F]