mip_dmp.qt5.components.dataset_mapper_window module
Module that defines the class dedicated to the main window of the MIP Dataset Mapper UI application.
- class mip_dmp.qt5.components.dataset_mapper_window.MIPDatasetMapperWindow(mainWindow)[source]
Bases:
object
Class for the main window of the MIP Dataset Mapper UI application.
- adjustWindow(mainWindow)[source]
Adjust the window size, Qt Style Sheet, and title.
Parameters
- mainWindowQMainWindow
The main window of the application.
- cdeCode
- cdeType
- centralWidgetGridLayout
- centralWidgetSplitter
- centralwidget
- checkMapping()[source]
Check the content of the mapping table.
This function checks if:
The mapping table contains unique mapping to a specific CDE code.
The mapping contains only valid CDE codes.
The mapping transform is correctly formatted.
- columnsCDEsMappingData
- columnsCDEsMappingGroupBox
- columnsCDEsMappingGroupBoxLayout
- columnsCDEsMappingPandasModel
- columnsCDEsMappingSplitter
- createComponents(mainWindow)[source]
Create the UI components.
Parameters
- mainWindowQMainWindow
The main window of the application.
- createInputDatasetComponents(mainWindow)[source]
Create the components of the input dataset group box.
Parameters
- mainWindowQMainWindow
The main window of the application.
- createMappingComponents(mainWindow)[source]
Create the components of the mapping group box.
Parameters
- mainWindowQMainWindow
The main window of the application.
- createMappingTableRowViewComponents()[source]
Create the components of the mapping table row editor group box.
- createTargetCDEsComponents(mainWindow)[source]
Create the components of the target CDEs group box.
Parameters
- mainWindowQMainWindow
The main window of the application.
- createToolBar(mainWindow)[source]
Create the tool bar.
Parameters
- mainWindowQMainWindow
The main window of the application.
- datasetColumn
- embeddingCanvas
- embeddingFigure
- embeddingVizButton
- embeddingWidget
- embeddingWidgetLayout
- initMatchingMethod
- initializeMappingEditForm(index)[source]
Initialize the mapping row editor form with the data of the selected row.
Parameters
- indexQModelIndex
The index of the selected row in the mapping table.
- inputDataset
- inputDatasetColumnEmbeddings
- inputDatasetColumns
- inputDatasetFormLayout
- inputDatasetFormLayoutWidget
- inputDatasetGroupBox
- inputDatasetGroupBoxLayout
- inputDatasetLoadButton
- inputDatasetPandasModel
- inputDatasetPath
- inputDatasetPathLabel
- inputDatasetTableView
- leftCentralWidgetSplitter
- mapButton
- mappingCheckButton
- mappingFilePath
- mappingFilePathLabel
- mappingFormLayout
- mappingFormLayoutWidget
- mappingInitButton
- mappingInitLabel
- mappingLoadButton
- mappingMatch()[source]
Initialize the column/CDEs mapping based on fuzzy word matching and character embedding methods.
- mappingRowIndex
- mappingSaveButton
- mappingTableRowUpdateGroupBox
- mappingTableRowUpdateGroupBoxLayout
- mappingTableView
- mappingTableViewAddDeleteRowLayout
- mappingTableViewAddDeleteRowWidget
- mappingTableViewAddRowButton
- mappingTableViewDeleteRowButton
- mappingTableViewLayout
- mappingTableViewWidget
- matchedCdeCodes
- matchingVizButton
- matchingWidget
- outputDirectoryLabel
- outputDirectoryPath
- outputDirectorySelectButton
- outputFilename
- outputFilenameLabel
- outputFilenameSelectButton
- outputFormLayout
- outputFormLayoutWidget
- outputGroupBox
- outputGroupBoxLayout
- rightCentralWidgetSplitter
- statusbar
- targetCDEs
- targetCDEsEmbeddings
- targetCDEsFormLayout
- targetCDEsFormLayoutWidget
- targetCDEsGroupBox
- targetCDEsGroupBoxLayout
- targetCDEsLoadButton
- targetCDEsPandasModel
- targetCDEsPath
- targetCDEsPathLabel
- targetCDEsTableView
- toolBar
- transform
- transformType
- updateMappingEditForm(index)[source]
Update the mapping table row form for a given index.
Parameters
- indexQModelIndex
The index of the selected row to be updated in the mapping table.
- updateMappingRowButton