|
1 | | -using Chemistry; |
2 | | -using Easy.Common.Extensions; |
| 1 | +using Easy.Common.Extensions; |
3 | 2 | using EngineLayer; |
4 | 3 | using EngineLayer.FdrAnalysis; |
5 | 4 | using EngineLayer.HistogramAnalysis; |
|
8 | 7 | using FlashLFQ; |
9 | 8 | using MassSpectrometry; |
10 | 9 | using MathNet.Numerics.Distributions; |
11 | | -using MzLibUtil; |
12 | | -using Omics.Modifications; |
13 | | -using Omics.SpectrumMatch; |
14 | | -using OpenMcdf.Extensions.OLEProperties; |
15 | 10 | using Proteomics; |
16 | 11 | using Proteomics.ProteolyticDigestion; |
17 | 12 | using System; |
|
21 | 16 | using System.IO.Compression; |
22 | 17 | using System.Linq; |
23 | 18 | using System.Text; |
24 | | -using System.Windows.Markup; |
25 | 19 | using TaskLayer.MbrAnalysis; |
26 | 20 | using Chemistry; |
27 | 21 | using MzLibUtil; |
| 22 | +using MzLibUtil.PositionFrequencyAnalysis; |
| 23 | +using Omics.Digestion; |
| 24 | +using Omics.BioPolymer; |
28 | 25 | using Omics.Modifications; |
29 | 26 | using Omics.SpectrumMatch; |
30 | 27 |
|
@@ -659,7 +656,7 @@ private void QuantificationAnalysis() |
659 | 656 | } |
660 | 657 |
|
661 | 658 | //Silac stuff for post-quantification |
662 | | - if (Parameters.SearchParameters.SilacLabels != null && Parameters.AllPsms.First() is PeptideSpectralMatch) //if we're doing silac |
| 659 | + if (Parameters.SearchParameters.SilacLabels != null && Parameters.AllSpectralMatches.First() is PeptideSpectralMatch) //if we're doing silac |
663 | 660 | { |
664 | 661 | SilacConversions.SilacConversionsPostQuantification(allSilacLabels, startLabel, endLabel, spectraFileInfo, ProteinGroups, Parameters.ListOfDigestionParams, |
665 | 662 | Parameters.FlashLfqResults, Parameters.AllSpectralMatches.Cast<PeptideSpectralMatch>().ToList(), Parameters.SearchParameters.ModsToWriteSelection, quantifyUnlabeledPeptides); |
@@ -1211,13 +1208,14 @@ public static double[] GetMultiplexIonIntensities(SpectralMatch psm, double[] th |
1211 | 1208 | .Where(ion => ion.NeutralTheoreticalProduct.ProductType == Omics.Fragmentation.ProductType.D) |
1212 | 1209 | .OrderBy(ion => ion.Mz) |
1213 | 1210 | .ToArray(); |
1214 | | - double[] expIonMzs = diagnosticIons.Select(ion => ion.Mz).ToArray(); |
| 1211 | + double[] expIonMzs = diagnosticIons.Select(ion => ion.Mz).ToArray(); |
1215 | 1212 | double[] ionIntensities = new double[theoreticalIonMzs.Length]; |
1216 | | - |
1217 | | - for (int ionIndex = 0; ionIndex < ionIntensities.Length; ionIndex++) |
| 1213 | + |
| 1214 | + int expIonIndex = 0; |
| 1215 | + for (int theoreticalIonIndex = 0; theoreticalIonIndex < ionIntensities.Length; theoreticalIonIndex++) |
1218 | 1216 | { |
1219 | | - while (peakIndex <= lastPeakIndex && |
1220 | | - scan.XArray[peakIndex] < tolerance.GetMinimumValue(theoreticalIonMzs[ionIndex])) |
| 1217 | + while (expIonIndex < expIonMzs.Length && |
| 1218 | + expIonMzs[expIonIndex] < tolerance.GetMinimumValue(theoreticalIonMzs[theoreticalIonIndex])) |
1221 | 1219 | { |
1222 | 1220 | expIonIndex++; |
1223 | 1221 | } |
|
0 commit comments