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.

addMappingTableRow()[source]

Add a row to the mapping table.

adjustWidgetsAndLayouts()[source]

Add widgets to the layouts of the UI elements.

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
connectButtons()[source]

Connect the buttons to their corresponding functions.

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
deleteMappingTableRow()[source]

Delete the selected row from the mapping table.

disableMappingComponents()[source]

Disable the mapping components.

disableMappingInitItems()[source]

Disable the mapping initialization items.

disableMappingMapButtons()[source]

Disable the check / save / load mapping and map buttons.

embeddingCanvas
embeddingFigure
embeddingViz()[source]

Open the embedding visualization window.

embeddingVizButton
embeddingWidget
embeddingWidgetLayout
enableMappingButtons()[source]

Enable the check / save / load mapping and map buttons.

enableMappingComponents()[source]

Enable the mapping components.

enableMappingInitItems()[source]

Enable the mapping initialization items.

initMapping()[source]

Initialize an empty column/CDEs mapping table.

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
loadCDEsFile()[source]

Load the CDEs file.

loadInputDataset()[source]

Load the input dataset.

loadMapping()[source]

Load the mapping file.

map()[source]

Map the input dataset to the target CDEs.

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
matchingViz()[source]

Open the matching visualization window.

matchingVizButton
matchingWidget
outputDirectoryLabel
outputDirectoryPath
outputDirectorySelectButton
outputFilename
outputFilenameLabel
outputFilenameSelectButton
outputFormLayout
outputFormLayoutWidget
outputGroupBox
outputGroupBoxLayout
rightCentralWidgetSplitter
saveMapping()[source]

Save the mapping file.

selectOutputFilename()[source]

Select the output filename.

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
updateMappingTableRow()[source]

Update the selected row of the mapping table with the data of the form.

updateStatusbar(message)[source]

Update the statusbar with the given message.