public override string ToString() { if (IsotopicProfile == null) { return(base.ToString()); } var data = new List <string> { MSFeatureID.ToString(), ScanSet.PrimaryScanNumber.ToString(), IsotopicProfile.MonoIsotopicMass.ToString("0.00000"), IsotopicProfile.ChargeState.ToString(), IsotopicProfile.MonoPeakMZ.ToString("0.00000"), IntensityAggregate.ToString("0.00"), IsotopicProfile.Score.ToString("0.0000"), InterferenceScore.ToString("0.0000") }; // Fit Score // Uncomment to write out the fit_count_basis // //data.Add(this.IsotopicProfile.ScoreCountBasis); // Number of points used for the fit score return(string.Join("; ", data)); }
public override int GetHashCode() { var hash = 17; hash = hash * 23 + MSFeatureID.GetHashCode(); hash = hash * 23 + MSMSFeatureID.GetHashCode(); hash = hash * 23 + MSDatasetID.GetHashCode(); hash = hash * 23 + RawDatasetID.GetHashCode(); return(hash); }
public override bool Equals(object obj) { var other = (MSFeatureToMSnFeatureMap)obj; if (other == null) { return(false); } if (!RawDatasetID.Equals(other.RawDatasetID)) { return(false); } if (!MSFeatureID.Equals(other.MSFeatureID)) { return(false); } if (!MSMSFeatureID.Equals(other.MSMSFeatureID)) { return(false); } return(MSDatasetID.Equals(other.MSDatasetID)); }