Skip to content

Commit

Permalink
add return of 'start' option in BinarySearchMass to address issue not…
Browse files Browse the repository at this point in the history
… analyzing a single spectrum query
  • Loading branch information
jke000 committed Nov 7, 2024
1 parent b7ef80b commit e04ef31
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CometSearch/CometSearch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2741,6 +2741,13 @@ int CometSearch::BinarySearchMass(int start,
{
return end;
}
else if ((int)middle == start
&& start < (int)g_pvQuery.size()
&& g_pvQuery.at(start)->_pepMassInfo.dPeptideMassToleranceMinus <= dCalcPepMass
&& dCalcPepMass <= g_pvQuery.at(start)->_pepMassInfo.dPeptideMassTolerancePlus)
{
return start;
}
else
return -1;
}
Expand Down

0 comments on commit e04ef31

Please sign in to comment.