public bool Equals(psms psm1, psms psm2) { if (psm1.sequence.Equals(psm2.sequence) && psm1.protein.Equals(psm2.protein)) { return(true); } return(false); }
public List <psms> getPsms(string path) { List <psms> returnList = new List <psms>(); using (CsvReader reader = new CsvReader(new StreamReader(path), true)) { while (reader.ReadNextRecord()) { psms psm = new psms(reader["Spectrum number"], reader["Mass"], reader["Defline"], reader["Peptide"], reader["Charge"], reader["Mods"], reader["Start"], reader["Filename/id"]); returnList.Add(psm); } } return(returnList); }
public int GetHashCode(psms psm) { return(psm.sequence.GetHashCode() + psm.protein.GetHashCode()); }