Skip to content

Commit

Permalink
Added constructor for ChromatogramGroupId that takes both qcTraceName…
Browse files Browse the repository at this point in the history
… and spectrumFilter.
  • Loading branch information
vagisha committed Nov 18, 2024
1 parent e1ac6ea commit 3875ebe
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/org/labkey/targetedms/parser/ChromatogramGroupId.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,16 @@ public class ChromatogramGroupId
private ChromatogramGroupId()
{
}
public ChromatogramGroupId(Target target, SpectrumFilter spectrumFilter)
public ChromatogramGroupId(Target target, String qcTraceName, SpectrumFilter spectrumFilter)
{
_target = target;
_qcTraceName = StringUtils.isEmpty(qcTraceName) ? null : qcTraceName;
_spectrumFilter = spectrumFilter;
}

public ChromatogramGroupId(Target target, String qcTraceName)
public ChromatogramGroupId(Target target, SpectrumFilter spectrumFilter)
{
_target = target;
_qcTraceName = StringUtils.isEmpty(qcTraceName) ? null : qcTraceName;
this(target, null, spectrumFilter);
}

public Target getTarget()
Expand Down Expand Up @@ -87,7 +87,7 @@ public static List<ChromatogramGroupId> fromProtos(ChromatogramGroupDataOuterCla
SpectrumFilter spectrumFilter = SpectrumFilter.fromFilterClauses(
chromatogramGroupId.getFilterIndexesList().stream()
.map(filterClauses::get).collect(Collectors.toList())).orElse(null);
list.add(new ChromatogramGroupId(targets.get(chromatogramGroupId.getTargetIndex()), spectrumFilter));
list.add(new ChromatogramGroupId(targets.get(chromatogramGroupId.getTargetIndex()), chromatogramGroupId.getQcTraceName(), spectrumFilter));
}
return list;
}
Expand Down

0 comments on commit 3875ebe

Please sign in to comment.