def show(self): from Base.utility import getVersion, getBuild global dialog, ui ui = Ui_frmMainMenuGUI() QtWidgets.QApplication.setStyle( QtWidgets.QStyleFactory.create('Fusion')) dialog = QtWidgets.QMainWindow() ui.setupUi(dialog) self.set_events(self) tools = Tools() tools.combo(ui.cbTools) try: ezdir = str(os.environ['EASYFMRI']) if len(ezdir): ui.txtEZDIR.setText(ezdir) assert os.path.isfile(ezdir + "/main.py") print("Easy fMRI directory is " + ezdir) else: print( "WARNING: cannot find $EASYFMRI! Please setup ~/.startupscript.sh" ) msgBox = QMessageBox() msgBox.setText( "WARNING: cannot find $EASYFMRI! Please setup ~/.startupscript.sh" ) msgBox.setIcon(QMessageBox.Critical) msgBox.setStandardButtons(QMessageBox.Ok) msgBox.exec_() except: print( "WARNING: cannot find $EASYFMRI! Please setup ~/.startupscript.sh" ) msgBox = QMessageBox() msgBox.setText( "WARNING: cannot find $EASYFMRI! Please setup ~/.startupscript.sh" ) msgBox.setIcon(QMessageBox.Critical) msgBox.setStandardButtons(QMessageBox.Ok) msgBox.exec_() ui.cbSource.addItem( "GitLab", ["gitlab.com/easyfmri/easyfmri.git", "https", False]) ui.cbSource.addItem( "GitHub", ["github.com/easyfmri/easyfmri.git", "https", False]) dialog.setWindowTitle("easy fMRI - V" + getVersion() + "B" + getBuild()) dialog.setWindowFlags(dialog.windowFlags() | QtCore.Qt.CustomizeWindowHint) dialog.setWindowFlags(dialog.windowFlags() & ~QtCore.Qt.WindowMaximizeButtonHint) dialog.setFixedSize(dialog.size()) dialog.show()
def show(self, parentin=None): from Base.utility import getVersion, getBuild global dialog, ui, parent ui = Ui_frmModelAnalysis() QtWidgets.QApplication.setStyle(QtWidgets.QStyleFactory.create('Fusion')) if parentin is not None: dialog = MainWindow(parentin) else: dialog = MainWindow() ui.setupUi(dialog) self.set_events(self) tools = Tools() tools.combo(ui.cbTools) ui.tabWidget.setCurrentIndex(0) # Unsupervised ui.cbMAU.addItem("Shared Similarity Analysis (SSA)", 30000) ui.cbMAU.addItem("RSA (Group Level)", 20008) ui.cbMAU.addItem("Bayesian RSA (Group Level)", 20001) ui.cbMAU.addItem("Gradient RSA (Group Level)", 20003) ui.cbMAU.addItem("Encoding Analysis (Session Level)", 20007) ui.cbMAU.addItem("Gradient Encoding Analysis (Session Level) ", 20002) ui.cbMAU.addItem("Classic Network Analysis ", 40000) ui.cbMAU.addItem("Classic Network Analysis (ROI-based)", 40001) ui.cbMAU.addItem("Clustering: Agglomerative", 10002) ui.cbMAU.addItem("Clustering: Birch", 10003) ui.cbMAU.addItem("Clustering: Gaussian Mixture", 10004) ui.cbMAU.addItem("Clustering: KMeans", 10000) ui.cbMAU.addItem("Clustering: Spectral", 10001) # Supervised ui.cbMAS.addItem("PyTorch (GPU) Support Vector Machine",10003) ui.cbMAS.addItem("SK Classification: AdaBoost",80005) ui.cbMAS.addItem("SK Classification: Decision Tree",80001) ui.cbMAS.addItem("SK Classification: Gaussian Naive Bayes",80000) ui.cbMAS.addItem("SK Classification: Linear Support Vector Machine (liblinear)",10001) ui.cbMAS.addItem("SK Classification: Multi-Layer Perceptron (MLP)",80002) ui.cbMAS.addItem("SK Classification: Nu Support Vector Machine (libsvm)",10002) ui.cbMAS.addItem("SK Classification: Random Forest",80004) ui.cbMAS.addItem("SK Classification: Stochastic Gradient Descent based approaches",80003) ui.cbMAS.addItem("SK Classification: Support Vector Machine (libsvm)",10000) ui.cbMAS.addItem("Atlas-based ensemble analysis", 99999) dialog.setWindowTitle("easy fMRI model analysis - V" + getVersion() + "B" + getBuild()) dialog.setWindowFlags(dialog.windowFlags() | QtCore.Qt.CustomizeWindowHint) dialog.setWindowFlags(dialog.windowFlags() & ~QtCore.Qt.WindowMaximizeButtonHint) dialog.setFixedSize(dialog.size()) dialog.show()
def show(self, parentin=None): from Base.utility import getVersion, getBuild, getDirSpaceINI, getDirSpace global dialog, ui, parent ui = Ui_frmVisalization() QtWidgets.QApplication.setStyle( QtWidgets.QStyleFactory.create('Fusion')) if parentin is not None: dialog = MainWindow(parentin) else: dialog = MainWindow() ui.setupUi(dialog) ui.tabWidget.setCurrentIndex(0) self.set_events(self) tools = Tools() tools.combo(ui.cbTools) ui.cbHemisphere.addItem("Both") ui.cbHemisphere.addItem("Left") ui.cbHemisphere.addItem("Right") afni = AFNI() afni.setting() if not afni.Validate: msgBox = QMessageBox() msgBox.setText("Cannot find AFNI setting!") msgBox.setIcon(QMessageBox.Critical) msgBox.setStandardButtons(QMessageBox.Ok) msgBox.exec_() else: ui.txtFAFNI.setText(afni.AFNI) ui.txtFSUMA.setText(afni.SUMA) ui.txtDSUMA.setText(afni.SUMADIR) ui.txtSUMAMNI.setText(afni.MNI) ui.txtBSUMA.setText(afni.Both) ui.txtLSUMA.setText(afni.Left) ui.txtRSUMA.setText(afni.Right) dialog.setWindowTitle("easy fMRI visualization - V" + getVersion() + "B" + getBuild()) dialog.setWindowFlags(dialog.windowFlags() | QtCore.Qt.CustomizeWindowHint) dialog.setWindowFlags(dialog.windowFlags() & ~QtCore.Qt.WindowMaximizeButtonHint) dialog.setFixedSize(dialog.size()) dialog.show()
def show(self): from Base.utility import getVersion,getBuild global dialog, ui ui = Ui_frmMainMenuGUI() QtWidgets.QApplication.setStyle(QtWidgets.QStyleFactory.create('Fusion')) dialog = QtWidgets.QMainWindow() ui.setupUi(dialog) self.set_events(self) tools = Tools() tools.combo(ui.cbTools) dialog.setWindowTitle("easy fMRI - V" + getVersion() + "B" + getBuild()) dialog.setWindowFlags(dialog.windowFlags() | QtCore.Qt.CustomizeWindowHint) dialog.setWindowFlags(dialog.windowFlags() & ~QtCore.Qt.WindowMaximizeButtonHint) dialog.setFixedSize(dialog.size()) dialog.show()
def show(self, parentin=None): from Base.utility import getVersion, getBuild global dialog, ui, parent ui = Ui_frmModelAnalysis() QtWidgets.QApplication.setStyle( QtWidgets.QStyleFactory.create('Fusion')) if parentin is not None: dialog = MainWindow(parentin) else: dialog = MainWindow() ui.setupUi(dialog) self.set_events(self) tools = Tools() tools.combo(ui.cbTools) ui.tabWidget.setCurrentIndex(0) # Unsupervised ui.cbMAU.addItem("MatLab, SK Clustering: Agglomerative", 10002) ui.cbMAU.addItem("MatLab, SK Clustering: Birch", 10003) ui.cbMAU.addItem("MatLab, SK Clustering: Gaussian Mixture", 10004) ui.cbMAU.addItem("MatLab, SK Clustering: KMeans", 10000) ui.cbMAU.addItem("MatLab, SK Clustering: Spectral", 10001) ui.cbMAU.addItem( "MatLab, SK RSA: Session Level Representational Similarity Analysis", 20007) ui.cbMAU.addItem( "MatLab, SK RSA: Group Level Representational Similarity Analysis", 20008) ui.cbMAU.addItem( "MatLab, NumPy RSA: Session Level Representational Similarity Analysis", 20000) ui.cbMAU.addItem( "MatLab, NumPy RSA: Group Level Representational Similarity Analysis", 20001) ui.cbMAU.addItem( "MatLab, Tensorflow RSA: Session Level Gradient Representational Similarity Analysis", 20002) ui.cbMAU.addItem( "MatLab, Tensorflow RSA: Session Level Deep-Kernel Representational Similarity Analysis", 20004) ui.cbMAU.addItem( "MatLab, Tensorflow RSA: Group Level Gradient Representational Similarity Analysis", 20003) ui.cbMAU.addItem( "MatLab, Tensorflow RSA: Group Level Multi-Deep-Kernel Representational Similarity Analysis", 20005) ui.cbMAU.addItem( "MatLab, Tensorflow RSA: Group Level Single-Deep-Kernel Representational Similarity Analysis", 20006) # Supervised ui.cbMAS.addItem("MatLab, MVPA, SK Classification: AdaBoost", 80005) ui.cbMAS.addItem("MatLab, MVPA, SK Classification: Decision Tree", 80001) ui.cbMAS.addItem( "MatLab, MVPA, SK Classification: Gaussian Naive Bayes", 80000) ui.cbMAS.addItem( "MatLab, MVPA, SK Classification: Linear Support Vector Machine (liblinear)", 10001) ui.cbMAS.addItem( "MatLab, MVPA, SK Classification: Multi-Layer Perceptron (MLP)", 80002) ui.cbMAS.addItem( "MatLab, MVPA, SK Classification: Nu Support Vector Machine (libsvm)", 10002) ui.cbMAS.addItem("MatLab, MVPA, SK Classification: Random Forest", 80004) ui.cbMAS.addItem( "MatLab, MVPA, SK Classification: Stochastic Gradient Descent based approaches", 80003) ui.cbMAS.addItem( "MatLab, MVPA, SK Classification: Support Vector Machine (libsvm)", 10000) dialog.setWindowTitle("easy fMRI model analysis - V" + getVersion() + "B" + getBuild()) dialog.setWindowFlags(dialog.windowFlags() | QtCore.Qt.CustomizeWindowHint) dialog.setWindowFlags(dialog.windowFlags() & ~QtCore.Qt.WindowMaximizeButtonHint) dialog.setFixedSize(dialog.size()) dialog.show()
def show(self): from Base.utility import getVersion, getBuild global dialog, ui ui = Ui_frmMainMenuGUI() QtWidgets.QApplication.setStyle( QtWidgets.QStyleFactory.create('Fusion')) dialog = QtWidgets.QMainWindow() ui.setupUi(dialog) self.set_events(self) tools = Tools() tools.combo(ui.cbTools) print() print(20 * "#" + " Platform Information " + 20 * "#") # Base Info print("Base:", os.name) # OS Info try: import platform print("OS:", platform.system()) print("Kernel:", platform.release()) except: pass # Python Info try: pythonInfo = str(sys.version).split("\n") print("Python:", pythonInfo[0]) print("C Compiler:", pythonInfo[1]) except: pass print(20 * "#" + " Software Information " + 20 * "#") try: ezdir = str(os.environ['EASYFMRI']) if len(ezdir): ui.txtEZDIR.setText(ezdir) assert os.path.isfile(ezdir + "/main.py") print("Easy fMRI directory is " + ezdir) else: print( "WARNING: cannot find $EASYFMRI! Please setup ~/.startupscript or ~/.zstartupscript" ) msgBox = QMessageBox() msgBox.setText( "WARNING: cannot find $EASYFMRI! Please setup ~/.startupscript or ~/.zstartupscript" ) msgBox.setIcon(QMessageBox.Critical) msgBox.setStandardButtons(QMessageBox.Ok) msgBox.exec_() except: print( "WARNING: cannot find $EASYFMRI! Please setup ~/.startupscript or ~/.zstartupscript" ) msgBox = QMessageBox() msgBox.setText( "WARNING: cannot find $EASYFMRI! Please setup ~/.startupscript or ~/.zstartupscript" ) msgBox.setIcon(QMessageBox.Critical) msgBox.setStandardButtons(QMessageBox.Ok) msgBox.exec_() if has_git_branch(): ui.cbSource.addItem("Fast via pull request", ["", "", False, True]) ui.cbSource.addItem( "GitLab (Clone/Full)", ["gitlab.com/easyfmri/easyfmri.git", "https", False, False]) ui.cbSource.addItem( "GitHub (Clone/Full)", ["github.com/easyfmri/easyfmri.git", "https", False, False]) dialog.setWindowTitle( f"easy fMRI - V{getVersion()}B{getBuild()} ({getGitBranch()})") dialog.setWindowFlags(dialog.windowFlags() | QtCore.Qt.CustomizeWindowHint) dialog.setWindowFlags(dialog.windowFlags() & ~QtCore.Qt.WindowMaximizeButtonHint) dialog.setFixedSize(dialog.size()) dialog.show()