Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Unusual entity info after conversion from mmtf to pdb and back #931

Copy link
Copy link

Description

@zacharyrs
Issue body actions

Taking an mmtf, converting to pdb, and then back to mmtf yields some funky entity info.

Specifically, take "3zyb", which has 6 entities, the first of is "PA-I galactophilic lectin", with asymIds A through H.
After converting to a pdb and back, we have an unnamed first entity (expected), with asymIds as below.

A,B,C,D,E,F,G,H,C,D,E,F,G,H,D,E,F,G,H,E,F,G,H,F,G,H,G,H,H

I don't think this is desired?

The other entities have the correct number of chains associated (albeit slightly different asymIds, but I think it's a non-issue).


Code to reproduce
MmtfUtils.setUpBioJava();
try {
    Structure struc = MmtfActions.readFromFile((new File("/tmp/3zyb.mmtf")).toPath());
    System.out.println(struc.getEntityInfos());
    Files.write((new File("/tmp/3zyb.pdb")).toPath(), struc.toPDB().getBytes());

    Structure struc2 = StructureIO.getStructure((new File("/tmp/3zyb.pdb")).toURI().toURL().toString());
    System.out.println(struc2.getEntityInfos());
    MmtfActions.writeToFile(struc2, (new File("/tmp/3zyb_weird.mmtf")).toPath());
} catch (Exception e) {
    e.printStackTrace();
    System.exit(1);
}
Reactions are currently unavailable

Metadata

Metadata

Assignees

Labels

bugBugs and bugfixesBugs and bugfixes

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

Morty Proxy This is a proxified and sanitized view of the page, visit original site.