print

pdb2sql.print(columns='*', tablename='atom', **kwargs)[source]

Print out SQL ATOM table.

Notes

Float number is stored in original precision. It will be formatted properly when output pdb with exportpdb method.

Parameters
  • columns (str) –

    columns to retreive, eg: “x,y,z”. if “*” all the columns are returned. Avaiable columns:

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

  • kwargs

    argument to select atoms, dict value must be list, e.g.:

    • name = [‘CA’, ‘O’]

    • no_name = [‘CA’, ‘C’]

    • chainID = [‘A’]

    • no_chainID = [‘A’]

Examples

>>> db.print()