public override bool Equals(object obj) { var massTagToProteinMap = (MassTagToProteinMap)obj; if (massTagToProteinMap == null) { return(false); } if (!MassTagId.Equals(massTagToProteinMap.MassTagId)) { return(false); } return(ProteinId.Equals(massTagToProteinMap.ProteinId)); }
public void Write(IExtendedBinaryWriter writer, int peptideIndex) { CodingRegion.Write(writer); ProteinId.Write(writer); writer.WriteOpt(peptideIndex); }