public PreferrenceEstimation(WorkSpace workspace)
        {
            //  _selectedSubjectName = workspace.SelectedSubject;

            dtPeptides     = workspace.GetPeptidesDataTable();
            dtProteins     = workspace.GetProteinsDataTable();
            _firstPosition = workspace.FirstPosition;
            _lastPosition  = workspace.LastPosition;

            _totalPositions     = workspace.SingleSidePeptideSize + workspace.SingleSidePeptideSize + 1;
            peArg               = new PreferrenceEstimationEventArgs();
            peArg.TargetOfStudy = workspace.SelectedSubject;
            _setOfAminoAcids    = new List <string>();
            _setOfAminoAcids.AddRange(workspace.SetOfAminoAcid);

            _subjectPositionIsTheMemberOfPeptide = workspace.SubjectPositionIsTheMemberOfPeptide;
            _subjectPosition = workspace.SubjectPosition;

            workspace = null;

            this._CountPerAminoAcid = new double[this.TotalAminoAcids];
            this._ExpectedCount     = new double[this.TotalAminoAcids];
            this._ExpectedFrequency = new double[this.TotalAminoAcids];

            this._ObservedCount      = new double[this.TotalAminoAcids, this._totalPositions];
            this._ObservedFrequency  = new double[this.TotalAminoAcids, this._totalPositions];
            this._DeviationParameter = new double[this.TotalAminoAcids, this._totalPositions];
            this._DOEC            = new double[this.TotalAminoAcids, this._totalPositions];
            this._Sigma           = new double[this.TotalAminoAcids, this._totalPositions];
            this._PreferredSites  = new double[this.TotalAminoAcids, this._totalPositions];
            this._SPreferredSites = new double[this.TotalAminoAcids, this._totalPositions];
        }
Ejemplo n.º 2
0
 public void OnPreferrenceEstimationProgressUpdate(object sender, EventArgs e)
 {
     progressStatus     = (PreferrenceEstimationEventArgs)e;
     lblStatus.Text     = progressStatus.Status;
     progressBar1.Value = progressStatus.Progress;
     Text           = progressStatus.TargetOfStudy;
     progressStatus = null;
     Application.DoEvents();
 }
 public void Dispose()
 {
     Dispose(true);
     peArg = null;
     GC.SuppressFinalize(this);
 }