next up previous contents index
Next: selection.translate() translate Up: The selection class: handling Previous: selection.only_het_residues() select   Contents   Index

selection.write() -- write selection coordinates to a file

file = <str:1> 'default' name of the coordinates' file
output_directory = <str:1> '' output directory
model_format = <str:1> 'PDB' selects output atom file type: 'PDB' | 'MMCIF'
no_ter = <bool:1> False whether to not write TER into PDB

This command writes the coordinates of all atoms in the selection to a file in the selected format.

See model.write() for full details; note that only 'PDB' and 'MMCIF' outputs are supported with this command.



Ben Webb 2007-01-19