ó
±™xTc           @   sk   d  d l  m Z d  d l m Z d  d l Z d  d l Z e j d „ Z e d k rg e e j	 d ƒ n  d S(   iÿÿÿÿ(   t   division(   t   SorryNc         C   s^  d d l  m } d d l m } d d  l } | j j d |  d | j d d ƒ } | j j	 ƒ  } | j
 d  k r} t d ƒ ‚ n  | | j
 d	 d
 ƒ} | j j } | j j ƒ  }	 | j ƒ  }
 |
 j ƒ  t j ƒ  } | j d | d |
 d |	 d | d | d t j ƒ } | j r'| j | j d |	 ƒ ƒ n  t j ƒ  } | j d k rZt j d | | IJn  | S(   Niÿÿÿÿ(   t   dssp(   t   any_filet   argst   master_philt   pdb_file_deft	   file_names   Please specify a PDB file.t
   force_typet   pdbt   pdb_hierarchyt	   pdb_atomst   xray_structuret   paramst   outt   logt   crystal_symmetryi   s   total DSSP runtime: %.3fs(   t   mmtbx.secondary_structureR   t   iotbx.file_readerR   t
   iotbx.philt   philt   process_command_line_with_filesR   t   workt   extractR   t   NoneR   t   file_objectt	   hierarchyt   xray_structure_simplet   atomst   reset_i_seqt   timet   syst   stderrt   atom_outputt   writet   as_pdb_stringt	   verbosity(   R   R   R   R   t   iotbxt   cmdlineR   t   fR
   R   R   t   t1t   SSt   t2(    (    sE   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/mmtbx/command_line/dssp.pyt   run   s:    		
		t   __main__i   (
   t
   __future__R    t   libtbx.utilsR   R   R   t   stdoutR+   t   __name__t   argv(    (    (    sE   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/mmtbx/command_line/dssp.pyt   <module>   s   