Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions pwiz_tools/Skyline/CommandLine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2643,6 +2643,11 @@ private bool ReintegratePeaks(CommandArgs commandArgs)
_out.WriteLine(SkylineResources.CommandLine_ReintegratePeaks_Error__Unknown_peak_scoring_model___0__);
return false;
}
if (Equals(scoringModel, LegacyScoringModel.DEFAULT_UNTRAINED_MODEL))
{
scoringModel = LegacyScoringModel.DEFAULT_MODEL;
}

modelAndFeatures = new ModelAndFeatures(scoringModel, null);
}

Expand Down
12 changes: 3 additions & 9 deletions pwiz_tools/Skyline/Model/SrmDocument.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1154,15 +1154,9 @@ private SrmSettings UpdateHasHeavyModifications(SrmSettings settings)
.Any(mods => mods.Modifications.Count > 0);
if (!hasHeavyModifications && HasSmallMolecules)
{
foreach (var molecule in Molecules)
{
if (molecule.TransitionGroups.Any(group =>
!ReferenceEquals(group.TransitionGroup.LabelType, IsotopeLabelType.light)))
{
hasHeavyModifications = true;
break;
}
}
hasHeavyModifications = Molecules
.SelectMany(mol => mol?.TransitionGroups ?? Array.Empty<TransitionGroupDocNode>())
.Any(group => !ReferenceEquals(group.TransitionGroup.LabelType, IsotopeLabelType.light));
}
if (hasHeavyModifications == settings.PeptideSettings.Modifications.HasHeavyModifications)
{
Expand Down