/// <summary> /// Gets a list of the peptide matches from the path provided. /// </summary> /// <param name="path"></param> /// <returns></returns> private List <PeptideMatch> GetPeptideMatches(string path) { var lines = File.ReadAllLines(path).ToList(); var matches = new List <PeptideMatch>(); foreach (var line in lines) { var data = line.Split(','); if (data.Length < 6) { continue; } try { var match = new PeptideMatch(); match.Peptide = data[5]; match.ScanX = Convert.ToInt32(data[1]); match.ScanY = Convert.ToInt32(data[3]); matches.Add(match); } catch { } } return(matches); }
/// <summary> /// Gets a list of the peptide matches from the path provided. /// </summary> /// <param name="path"></param> /// <returns></returns> private List<PeptideMatch> GetPeptideMatches(string path) { var lines = File.ReadAllLines(path).ToList(); var matches = new List<PeptideMatch>(); foreach (var line in lines) { var data = line.Split(','); if (data.Length < 6) { continue; } try { var match = new PeptideMatch(); match.Peptide = data[5]; match.ScanX = Convert.ToInt32(data[1]); match.ScanY = Convert.ToInt32(data[3]); matches.Add(match); } catch { } } return matches; }