diff --git a/prody/proteins/pdbfile.py b/prody/proteins/pdbfile.py index dc20c31ec..857b84761 100644 --- a/prody/proteins/pdbfile.py +++ b/prody/proteins/pdbfile.py @@ -1525,7 +1525,7 @@ def writePDBStream(stream, atoms, csets=None, **kwargs): write(pdbline % (hetero[i], serial, atomnames[i], altlocs[i], - resname, chainids[i], resnum, + resname, chainids[i][0], resnum, icodes[i], xyz[0], xyz[1], xyz[2], occupancies[i], bfactors[i],