Skip to content

Commit f29d4fe

Browse files
Update PercolatorInfile.cpp to handle a corner case in sage (OpenMS#7977)
* Update PercolatorInfile.cpp * Apply suggestions from code review Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent b36cdec commit f29d4fe

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/openms/source/FORMAT/PercolatorInfile.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,9 @@ namespace OpenMS
337337

338338
for (const auto& name : found_extra_scores)
339339
{
340-
ph.setMetaValue(name, row[to_idx.at(name)]);
340+
String value = row[to_idx.at(name)];
341+
if (name == "ln(-posson)" && value == "inf") value = "3.5"; // workaround for Sage
342+
ph.setMetaValue(name, value);
341343
}
342344
ph.setRank(rank);
343345

@@ -645,4 +647,4 @@ namespace OpenMS
645647
return count;
646648
}
647649

648-
}
650+
}

0 commit comments

Comments
 (0)