ó
œ™xTc           @   s‰   d  d l  m Z d  d l m Z d  d l Z d  d l Z d  d l Z d  d l	 Z	 e	 j
 Z d „  Z e d k r… e d e j d ƒ n  d S(   iÿÿÿÿ(   t   division(   t
   cif_triageNc         C   s­   t  |  ƒ d k s t ‚ t t j j j j ƒ  ƒ } t j	 j
 d d d t ƒ } xS | D]K } t j | | d j ƒ  d | d ƒ } t j d | ƒ d k sU t ‚ qU Wd	 GHd  S(
   Ni    t   relative_paths   chem_data/geostdt   optionalt   data_s   .cift	   file_namei   t   OK(   t   lent   AssertionErrort   sortedt   iotbxt   pdbt   amino_acid_codest   one_letter_given_three_lettert   keyst   libtbxt   envt   find_in_repositoriest   Falset   opt   joint   lowerR   t
   check_comp(   t   argst   amino_acid_resnamest   geostd_patht   resnameR   (    (    sR   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/mmtbx/monomer_library/tst_cif_triage.pyt   run   s    !"t   __main__R   i   (   t
   __future__R    t   mmtbx.monomer_libraryR   t   iotbx.pdb.amino_acid_codesR
   t   libtbx.load_envR   t   syst   ost   pathR   R   t   __name__t   argv(    (    (    sR   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/mmtbx/monomer_library/tst_cif_triage.pyt   <module>   s   		