public void Clear() { Targets.Clear(); Proteins.Clear(); RegressionResults = null; ProcessedState = ProcessingState.NotProcessed; m_featureCount = 0; }
/// <summary> /// Clear all proteins without proteoforms. /// </summary> public void ClearEmptyProteins() { Proteins.Clear(); foreach (var protein in allProteins) { if (protein.Value.Proteoforms.Count > 0) { Proteins.Add(protein.Key, protein.Value); } } }
/// <summary> /// Loads data from a peptide identification file /// </summary> /// <param name="merge"> /// A <see cref="System.Boolean"/> indicating wether merge the new file with the existing data /// </param> public void Load( string path, bool merge ) { if( !merge || m_Run == 0 ) { m_InputFiles.Clear(); Proteins.Clear(); Peptides.Clear(); Spectra.Clear(); m_gid = 1; m_SortedProteins = new SortedList<string, Protein>(); m_Run = 1; } else m_Run++; Load( path ); m_InputFiles.Add( Path.GetFileName(path) ); }
/// <summary> /// Clears an existing target and protein data /// </summary> public void ClearTargets() { ConsensusTargets.Clear(); Proteins.Clear(); }