Skip to content

extracted PDB structure have broken peptide bonds #315

@anamika2501

Description

@anamika2501

Dear Authors and team
I have used deeptime and pyemma both for constructing MSM, after PCCA I fetched the representative structure, but somehow the peptide bond between two of the residues is broken in all three structures.

here is the code

frame_set = set()

for i in range(nstates):
frames = np.where(metastable_traj == i)[0]
if len(frames) > 0:
frame_set.add(frames[0])

frame_set = sorted(frame_set)

current_index = 0
global_index = 0

for chunk in md.iterload('md_com.xtc', top='protein_only_com.pdb', chunk=100):

for frame in chunk:

    if global_index in frame_set:
        frame.save_pdb(f"pcca_state_{current_index+1}.pdb")
        print(f"Saved representative structure: pcca_state_{current_index+1}.pdb")
        current_index += 1

    global_index += 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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