Skip to content

Bioassembly fails for a structure with null seqres groups (MMTF only) #792

@biocryst

Description

@biocryst

StructureIO.getStructure("BIO:2X3T:1") causes exception when cloning the asymmetric unit, if MMTF is used (cache.setUseMmtf(true)). The reason is null seqres groups.

There are two issues here: difference in the data between MMTF and MMCIF, and "safe" code.

I can make the code a bit safer, i.e. take this test:

if (seqResGroup==null) {
tmpSeqRes.add(null);
continue;
}

and put a similar one here:
public void setSeqResGroups(List<Group> groups){
for (Group g: groups){
g.setChain(this);
}
this.seqResGroups = groups;
}

I am not sure what to do with the difference in the data at this point.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBugs and bugfixes

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions