private void UpdateCharges(UMCLight feature) { Charges.Clear(); m_scanMaps = feature.CreateChargeMap(); foreach (var charge in m_scanMaps.Keys) { double mz = 0; var minScan = int.MaxValue; var maxScan = int.MinValue; double maxIntensity = 0; foreach (var msFeature in m_scanMaps[charge]) { minScan = Math.Min(minScan, msFeature.Scan); maxScan = Math.Max(maxScan, msFeature.Scan); if (maxIntensity >= msFeature.Abundance) { continue; } maxIntensity = msFeature.Abundance; mz = msFeature.Mz; } Charges.Add(new ChargeStateViewModel(charge, mz, minScan, maxScan)); } if (Charges.Count <= 0) { return; } SelectedCharge = Charges[0]; }
public void ResetData() { Employees.Clear(); ExpenseReports.Clear(); Charges.Clear(); }
public void SolidifyCharges() { CloneConflictDict(Conflicts, TempConflicts); Charges.Clear(); }