PDBCUR (CCP4: Supported Program) NAME pdbcur - a curation tool providing various analyses and manipulations of PDB files SYNOPSIS pdbcur xyzin foo_in.pdb xyzout foo_out.pdb [Key-worded input file] DESCRIPTION pdbcur provides various functions for analysing and manipulating the contents of PDB files. The program is written using the new MMDB library for coordinate data, and thus works with a hierarchical view of the atomic model. This hierarchy is visible for example in the atom selection syntax used. The program works on each keyword in turn. Therefore, the behaviour of a keyword may depend on what keywords have been previously applied, and how they have updated the model. In complex cases, it may be better to perform several runs of pdbcur. INPUT AND OUTPUT FILES XYZIN Input coordinate file. XYZOUT Output coordinate file. KEYWORDED INPUT summarise Summarise the contents of the coordinate file. For each chain in each model, the following information is listed: * The total number of residues * The set of residue ranges * The number of residues which have alternative conformations * The amino acid composition delsolvent Delete all solvent residues from all chains and all models. The list of residues identified as "solvent" is kept in $CCP4/lib/src/mmdb/mmdb_tables.cpp as array StdSolventName, and is currently "ADE", "CYT", "GUA", "INO", "THY", "URA", "WAT", "HOH", "TIP", "H2O", "DOD", "MOH". If a chain has both protein and solvent, only solvent gets removed. If a chain becomes empty after removal of solvent, it gets removed. delhydrogen Delete all hydrogens in the model. This is simple wrapper to delatom. mostprob [ ] Keep only the most probable alternate conformation, i.e. that with the highest occupancy, irrespective of ordering and altID label. Other conformations are deleted from the model. For the kept atoms, the occupancy is set to 1.0 and the altID removed. Note that the resetting of occupancies renders a subsequent 'cutocc' keyword ineffective. If there are two conformations with occupancy of 0.5, then the conformation with alternate ID is kept. If this parameter is not given, it defaults to "A". Note that this only applies to equal dual conformers - for unequal conformers, that with the highest occupancy is kept, as explained above. This option is useful for switching back and forth between single and multiple conformers during refinement to check the validity of the model, and for generating single models for simulation or modelling. cutocc {cutoff} Delete all atoms with an occupancy less than or equal to {cutoff}. The default cutoff is 0.0, i.e. specifying cutocc with no arguments removes all atoms with zero occupancy. noanisou Removes all the ANISOU records from the coordinate file. renchain {selection of chain(s)} 'new chain ID' Example: renchain /*/A 'B' Quotations are optional and are useful for designation 'no chain ID'. Examples: * rename A to 'no chain ID': renchain A '' * rename 'no chain ID' to B: renchain /*// B renresidue {selection of residue(s)} 'new residue name' Example: renresidue (ALA) 'AL1' renatom {selection of atom(s)} 'new 4-letter atom name' Example: renatom CA[C] ' CC ' renelement {selection of atom(s)} 'new element name' Example: renelement CA[C] 'AL' delmodel {selection of model(s)} Deletes the specified model(s). Example (delete model #1): delmodel /1 Example (delete all models with chain A): delmodel /*/A delchain {selection of chain(s)} Deletes the specified chain(s). Example (delete chain A in all models): delchain A Example (delete chain A in 1st model): delchain /1/A delresidue {selection of residue(s)} Deletes the specified residue(s). Example (delete residues 33 to 120): delresidue 33-120 delatom {selection of atom(s)} Deletes the specified atom(s). Example (delete all C-gamma atoms): delatom CG[C] deldist Deletes atoms within R angstrom of x,y,z. Example: deldist 32.1 45.6 -0.4 10.0 lvmodel {selection of model(s)} Leaves the specified model(s), everything else is deleted. Example (leave only model #1): lvmodel /1 Example (leave all models with chain A): lvmodel /*/A lvchain {selection of chain(s)} Leaves the specified chain(s), everything else is deleted. Example (leave chains A in all models): lvchain A Example (leave only chain A in 1st model): lvchain /1/A lvresidue {selection of residue(s)} Leaves the specified residue(s), everything else is deleted. Example (leave residues 33.A to 120.B): lvresidue 33.A-120.B lvatom {selection of atom(s)} Leaves the specified atom(s), everything else is deleted. Example (leave only C-alpha atoms): lvatom "CA[C]:*" Note the use of * to get all alternative conformations, since the default for atom-level selection is a blank alt loc indicator only, see atom selection syntax. lvdist Leaves atoms within R angstrom of x,y,z; everything else is deleted. Example: lvdist 32.1 45.6 -0.4 10.0 write {PDB|CIF|BIN} Writes 'xyzout' as a PDB, mmCIF or MMDB BINary file. By default, the file is written in the format of input file. genter No parameters; this keyword generates PDB 'TER' cards. sernum No parameters; this keyword generates correct atom serial numbers. mvsolvent No parameters; moves solvent chains to the end of models. symmetry Input of the space group symmetry name, e.g. 'P 21 21 21' (without quotation marks, spaces _are_ significant, case sensitive). This parameter is mandatory if coordinate file does not specify the space group symmetry. geometry Input of the unit cell dimensions (space-separated real numbers). This parameter is mandatory if coordinate file does not specify the cell parameters. genunit Generating a unit cell as defined by crystallographic information given in coordinate file or set up with keywords 'symmetry' and 'geometry'. Chains generated by identity operation retain their names, all other are renamed as c_n, where c is the chain's original name, and n is the number of symmetry operation in the space group used (starting from 0 for identity operation on). In order to comply with PDB standards, the chains are then to be renamed using renchain command, e.g. renchain A_2 H . The chains may be assigned automatically generated 1-character names using the command mkchainIDs . Example: rnase.pdb contains 2 chains A and B. Generate a unit cell, space group P 21 21 21, 4 symmetry operations, and assign chain IDs C,D,E for chain A transformed by operations #1,2,3, and IDs F,G,H for chain B transformed by the same operations. Chains A and B transformed by 0th operation (identity) retain their IDs: pdbcur xyzin rnase.pdb xyzout ucell.pdb <