ó
±™xTc           @   sq   d  d l  m Z d  d l m Z d  d l Z d  d l Z d Z e j d „ Z	 e
 d k rm e	 e j d ƒ n  d S(   iÿÿÿÿ(   t   division(   t   SorryNsî   
  model = None
    .type = path
  include scope mmtbx.refinement.select_best_starting_model.strip_model_params
  preserve_remarks = False
    .type = bool
  preserve_symmetry = True
    .type = bool
  output_file = None
    .type = bool
c         C   sì   d d  l  } | j j d |  d t d d d d ƒ } | j j ƒ  } | j d  k r` t d ƒ ‚ n  d d	 l	 m
 } | j } | d  k r± t j j t j j | j ƒ d
 ƒ d } n  | j d | j d | d | j d | j d | d | ƒ d  S(   Niÿÿÿÿt   argst   master_phil_stringt   pdb_file_deft   modelt   usage_strings«   mmtbx.strip_model model.pdb [options]

Prepare a model for use in MR or isomorphous substitution.  See also
phenix.pdbtools, which overlaps considerably in functionality.
s   No model specified.(   t   select_best_starting_modeli    s   _modified.pdbt	   file_namet   paramst   preserve_remarkst   preserve_symmetryt   output_filet   log(   t
   iotbx.philt   philt   process_command_line_with_filest   master_philt   workt   extractR   t   NoneR   t   mmtbx.refinementR   R   t   ost   patht   basenamet   splitextt   strip_modelR
   R   (   R   t   outt   iotbxt   cmdlineR	   R   R   (    (    sL   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/mmtbx/command_line/strip_model.pyt   run   s*    		"
				t   __main__i   (   t
   __future__R    t   libtbx.utilsR   t   os.pathR   t   sysR   t   stdoutR   t   __name__t   argv(    (    (    sL   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/mmtbx/command_line/strip_model.pyt   <module>   s   