I mean the Phenix command to extract the sequence from the PDB file
phenix.print_sequence model.pdb
should do it.
Pavel