Open orbeckst opened 5 years ago
Show how to create custom segid identifiers (so that one can write a PDB file with custom ChainIDs).
See also https://github.com/MDAnalysis/mdanalysis/issues/1105 and https://github.com/MDAnalysis/mdanalysis/issues/947
@richardjgowers said:
The problem here is assigning new names won’t create new segments. Instead this should work:
newseg = U.add_Segment(segid=‘T’) U.select_atoms('bynum 1201:2400').residues.segments = newseg
Show how to create custom segid identifiers (so that one can write a PDB file with custom ChainIDs).
See also https://github.com/MDAnalysis/mdanalysis/issues/1105 and https://github.com/MDAnalysis/mdanalysis/issues/947