Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 50773: Pressure traces without a TextId can't be used for QC trace metrics #931

Merged
merged 1 commit into from
Jul 17, 2024
Merged
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
10 changes: 9 additions & 1 deletion src/org/labkey/targetedms/parser/SkylineDocumentParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -3113,6 +3113,7 @@ public List<SampleFileChromInfo> getSampleFileChromInfos(Map<String, SampleFile>
{
return Collections.emptyList();
}
int traceMetricIndex = 1;
for (ChromGroupHeaderInfo chromatogram : _binaryParser.getChromatograms())
{
// Sample-scoped chromatograms have a magic precursor MZ value
Expand Down Expand Up @@ -3144,7 +3145,14 @@ public List<SampleFileChromInfo> getSampleFileChromInfos(Map<String, SampleFile>
ChromatogramGroupId chromatogramGroupId = _binaryParser.getTextId(chromatogram);
if (chromatogramGroupId != null)
{
info.setTextId(chromatogramGroupId.getQcTraceName());
if (chromatogramGroupId.getQcTraceName() == null && chromatogram.getFlagValues().contains(ChromGroupHeaderInfo.FlagValues.extracted_qc_trace))
{
info.setTextId("QC Trace " + traceMetricIndex++);
}
else
{
info.setTextId(chromatogramGroupId.getQcTraceName());
}
}
info.setChromatogramFormat(chromatogram.getChromatogramBinaryFormat().ordinal());
info.setChromatogramOffset(chromatogram.getLocationPoints());
Expand Down