Skip to content

Commit b712a3d

Browse files
Augustin-Zidekcopybara-github
authored andcommitted
Fix descriptions being dropped in some places for protein/RNA chains
* From #677 by @ntnn19. Thank you! PiperOrigin-RevId: 919589563 Change-Id: I82c6ccf0797b87d9347fda731af00b9c0cc16cea
1 parent 7d4a236 commit b712a3d

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

src/alphafold3/common/folding_input.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -648,6 +648,7 @@ def fill_missing_fields(self) -> Self:
648648
id=self.id,
649649
sequence=self.sequence,
650650
modifications=self.modifications,
651+
description=self.description,
651652
unpaired_msa=self._unpaired_msa or '',
652653
)
653654

src/alphafold3/data/pipeline.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -538,6 +538,7 @@ def process_protein_chain(
538538
id=chain.id,
539539
sequence=chain.sequence,
540540
ptms=chain.ptms,
541+
description=chain.description,
541542
unpaired_msa=unpaired_msa,
542543
paired_msa=paired_msa,
543544
templates=templates,
@@ -570,6 +571,7 @@ def process_rna_chain(
570571
id=chain.id,
571572
sequence=chain.sequence,
572573
modifications=chain.modifications,
574+
description=chain.description,
573575
unpaired_msa=unpaired_msa,
574576
)
575577

0 commit comments

Comments
 (0)