Skip to content

Preserve extra_fields when add_missing_atoms is set to TrueΒ #56

@MrGreyfun

Description

@MrGreyfun

Hello, thank you for developing this useful project.

When using the parse function from atomworks.io.parser, extra fields will be removed if add_missing_atoms is set to True. It would be helpful if these extra_fields could be preserved, as they often contain necessary information (e.g. auth_asym_id is frequently used).

For atoms that are added because they were missing in the original mmCIF or PDB file, the corresponding extra_fields could be filled with nan or another placeholder value if the data is not available in the source file.

Would it be possible to update the behavior so that extra_fields are retained rather than deleted in such cases?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions