update_column

pdb2sql.update_column(colname, values, index=None, tablename='ATOM')[source]

Update a single column.

Parameters
  • colname (str) –

    name of the column to update Avaiable columns:

    serial, name, altLoc, resName, chainID, resSeq, iCode, x, y, z, occ, temp, element, model

  • values (list) – new values of the column

  • index (None, optional) – index of the column to update (default all)

Example

>>> db.update_column('x',np.random.rand(10),index=list(range(10)))