Skip to content

Commit

Permalink
Backmerge: #5470 - Export of diffrent mixed and alternatives peptides…
Browse files Browse the repository at this point in the history
… (with diffrent proportions and percents) works wrong (#5488)
  • Loading branch information
rrodionov91 authored and Guch1g0v committed Oct 17, 2024
1 parent f15a59e commit efb8c13
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -714,11 +714,13 @@ export class KetSerializer implements Serializer<Struct> {
);

if (monomer instanceof AmbiguousMonomer) {
templateId = monomer.monomers.reduce(
(templateId, monomer) =>
templateId + '_' + getMonomerUniqueKey(monomer.monomerItem),
'',
);
templateId =
monomer.variantMonomerItem.id ||
monomer.monomers.reduce(
(templateId, monomer) =>
templateId + '_' + getMonomerUniqueKey(monomer.monomerItem),
'',
);
} else {
templateId =
monomer.monomerItem.props.id ||
Expand Down

0 comments on commit efb8c13

Please sign in to comment.