Exemplo n.º 1
0
        /// <summary>
        /// Calculate log Expressions
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void menuItemRRollup_Click(object sender, EventArgs e)
        {
            var selectedNodeTag = (clsDatasetTreeNode)ctltreeView.SelectedNode.Tag;

            if (!ValidateTables(selectedNodeTag, "RRollup"))
            {
                return;
            }

            var dataset = selectedNodeTag.mstrRdatasetName;

            #region Hook Threading events

            m_BackgroundWorker.DoWork             += m_BackgroundWorker_RRollup;
            m_BackgroundWorker.RunWorkerCompleted += m_BackgroundWorker_RRollupCompleted;

            #endregion

            mclsRRollupPar = new Purgatorio.clsRRollupPar
            {
                Rdataset      = selectedNodeTag.mstrRdatasetName,
                DataSetName   = selectedNodeTag.mstrDataText,
                OutFolder_pub = Settings.Default.WorkingFolder
            };

            var rRollupParams = new frmRRollUpPar(mclsRRollupPar);

            if (mhtDatasets.ContainsKey("RRollup"))
            {
                MessageBox.Show("RRollup is already done.", "Nothing to do");
                return;
            }

            if (rRollupParams.ShowDialog() == DialogResult.OK)
            {
                mclsRRollupPar = rRollupParams.clsRRollupPar;

                if (dataset != null)
                {
                    Add2AnalysisHTable(mclsRRollupPar, "RRollup");
                    var rcmd = mclsRRollupPar.Rcmd;

                    m_BackgroundWorker.RunWorkerAsync(rcmd);
                    mfrmShowProgress.Reset("RRollup : Scaling Peptides and Rolling up to Proteins ...");
                    mfrmShowProgress.ShowDialog();
                }
            }

            #region Unhook Threading events

            m_BackgroundWorker.DoWork             -= m_BackgroundWorker_RRollup;
            m_BackgroundWorker.RunWorkerCompleted -= m_BackgroundWorker_RRollupCompleted;

            #endregion
        }
Exemplo n.º 2
0
 public frmRRollUpPar(Purgatorio.clsRRollupPar mclsRR)
 {
     InitializeComponent();
     mclsRRollup = mclsRR;
 }