Skip to content

Commit

Permalink
Bufgix decon
Browse files Browse the repository at this point in the history
* Ordinal

* noice

* Aaha

* fix

* Bugfix
  • Loading branch information
stefanks authored Oct 17, 2017
1 parent 74ae37d commit 1da634c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MassSpectrometry/MzSpectra/MzSpectrum.cs
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ public IEnumerable<IsotopicEnvelope> Deconvolute(MzRange theRange, int maxAssume
var closestPeakmz = XArray[closestPeakToTheorMass];
//Console.WriteLine(" closestPeakmz: " + closestPeakmz);
var closestPeakIntensity = YArray[closestPeakToTheorMass];
if (Math.Abs(closestPeakmz.ToMass(chargeState) - theorMassThatTryingToFind) / theorMassThatTryingToFind * 1e6 <= deconvolutionTolerancePpm
if (closestPeakmz != candidateForMostIntensePeakMz && Math.Abs(closestPeakmz.ToMass(chargeState) - theorMassThatTryingToFind) / theorMassThatTryingToFind * 1e6 <= deconvolutionTolerancePpm
&& Peak2satisfiesRatio(allIntensities[averagineTypeIndex][massIndex][0], allIntensities[averagineTypeIndex][massIndex][indexToLookAt], candidateForMostIntensePeakIntensity, closestPeakIntensity, intensityRatioLimit))
{
// Found a match to an isotope peak for this charge state!
Expand Down

0 comments on commit 1da634c

Please sign in to comment.