//LOESS private void menuItemLOESSNorm_Click(object sender, EventArgs e) { var mclsSelected = (clsDatasetTreeNode)ctltreeView.SelectedNode.Tag; if (!ValidateNodeIsSelected(mclsSelected)) { return; } if (!ValidateExpressionsLoaded("use LOESS")) { return; } if (!ValidateFactorsDefined("use LOESS (note that data should be log transformed)")) { return; } if (!ValidateDataMatrixTableSelected(mclsSelected)) { return; } #region Hook Threading events m_BackgroundWorker.DoWork += m_BackgroundWorker_Lowess; m_BackgroundWorker.RunWorkerCompleted += m_BackgroundWorker_LowessCompleted; #endregion mclsLoessPar = new Purgatorio.clsLoessPar { Rdataset = mclsSelected.mstrRdatasetName, DataSetName = mclsSelected.mstrDataText }; var mfrmLoessPar = new frmLOESSPar(mclsLoessPar) { DataSetName = mclsSelected.mstrDataText }; var mclsFactors = mhtDatasets["Factors"]; mfrmLoessPar.PopulateFactorComboBox = clsDataTable.DataTableRows(mclsFactors.mDTable); if (mfrmLoessPar.ShowDialog() == DialogResult.OK) { mclsLoessPar = mfrmLoessPar.clsLoessPar; Add2AnalysisHTable(mclsLoessPar, "LOESS"); var rcmd = mclsLoessPar.Rcmd; m_BackgroundWorker.RunWorkerAsync(rcmd); mfrmShowProgress.Message = "LOESS Normalizing Data ..."; mfrmShowProgress.ShowDialog(); } #region Unhook Threading events m_BackgroundWorker.DoWork -= m_BackgroundWorker_Lowess; m_BackgroundWorker.RunWorkerCompleted -= m_BackgroundWorker_LowessCompleted; #endregion }
private void menuItemLOESSNorm_Click(object sender, EventArgs e) //LOESS { var selectedNodeTag = (clsDatasetTreeNode)ctlTreeView.SelectedNode.Tag; if (!ValidateNodeIsSelected(selectedNodeTag)) { return; } if (!ValidateExpressionsLoaded("use LOESS")) { return; } if (!ValidateFactorsDefined("use LOESS (note that data should be log transformed)")) { return; } if (!ValidateDataMatrixTableSelected(selectedNodeTag)) { return; } #region Hook Threading events m_BackgroundWorker.DoWork += m_BackgroundWorker_Lowess; m_BackgroundWorker.RunWorkerCompleted += m_BackgroundWorker_LowessCompleted; #endregion mLoessParams = new Purgatorio.clsLoessPar { RDataset = selectedNodeTag.RDatasetName, DataSetName = selectedNodeTag.DataText }; var loessParams = new frmLOESSPar(mLoessParams) { DataSetName = selectedNodeTag.DataText }; var factorTable = mhtDatasets["Factors"]; loessParams.PopulateFactorComboBox = clsDataTable.DataTableRows(factorTable.mDTable); if (loessParams.ShowDialog() == DialogResult.OK) { mLoessParams = loessParams.clsLoessPar; Add2AnalysisHTable(mLoessParams, "LOESS"); var rCmd = mLoessParams.RCommand; m_BackgroundWorker.RunWorkerAsync(rCmd); mProgressForm.Reset("LOESS Normalizing Data ..."); mProgressForm.ShowDialog(); } #region Unhook Threading events m_BackgroundWorker.DoWork -= m_BackgroundWorker_Lowess; m_BackgroundWorker.RunWorkerCompleted -= m_BackgroundWorker_LowessCompleted; #endregion }
private void menuItemLOESSNorm_Click(object sender, EventArgs e) //LOESS { var mclsSelected = (clsDatasetTreeNode)ctltreeView.SelectedNode.Tag; if (!ValidateNodeIsSelected(mclsSelected)) { return; } if (!ValidateExpressionsLoaded("use LOESS")) { return; } if (!ValidateFactorsDefined("use LOESS (note that data should be log transformed)")) { return; } if (!ValidateDataMatrixTableSelected(mclsSelected)) { return; } #region Hook Threading events m_BackgroundWorker.DoWork += m_BackgroundWorker_Lowess; m_BackgroundWorker.RunWorkerCompleted += m_BackgroundWorker_LowessCompleted; #endregion mclsLoessPar = new Purgatorio.clsLoessPar { Rdataset = mclsSelected.mstrRdatasetName, DataSetName = mclsSelected.mstrDataText }; var mfrmLoessPar = new frmLOESSPar(mclsLoessPar) { DataSetName = mclsSelected.mstrDataText }; var mclsFactors = mhtDatasets["Factors"]; mfrmLoessPar.PopulateFactorComboBox = clsDataTable.DataTableRows(mclsFactors.mDTable); if (mfrmLoessPar.ShowDialog() == DialogResult.OK) { mclsLoessPar = mfrmLoessPar.clsLoessPar; Add2AnalysisHTable(mclsLoessPar, "LOESS"); var rcmd = mclsLoessPar.Rcmd; m_BackgroundWorker.RunWorkerAsync(rcmd); mfrmShowProgress.Message = "LOESS Normalizing Data ..."; mfrmShowProgress.ShowDialog(); } #region Unhook Threading events m_BackgroundWorker.DoWork -= m_BackgroundWorker_Lowess; m_BackgroundWorker.RunWorkerCompleted -= m_BackgroundWorker_LowessCompleted; #endregion }