The file format is autodetected if the extension is .pdb, .pqr, .mol, .sdf, .pkl, .pkla, .mmd, .out, .dat, .mmod, .pmo, .pov, .png, .pse, .psw, .aln, .fasta, .obj, .mtl, .wrl, .idtf, .dae, or .mol2.
If the file extension is ".pse" (PyMOL Session), the complete PyMOL state is always saved to the file (the selection and state parameters are thus ignored).
CLUSTALW formatted alignments can be written by PyMOL as well. Once you perform an alignment like the following,
alignproteinA,proteinB,object=A_on_B
the alignment can be written using:
saveA_aligned_with_B.aln,A_on_B
USAGE
savefile[,(selection)[,state[,format]]]
EXAMPLES
# save only the alpha carbonssaveonlyCAs.pdb,n.CA# save my MD trajectory file to disksavemyTraj.pdb,myMDTrajectory,state=0# save a PyMOL sessionsavethisSession.pse