ó
|™xTc           @   sn   d  d l  m Z d  d l Z d d d d d d d d d d d d e d d e e e d e e d d d „ Z d S(   iÿÿÿÿ(   t   divisionNt    g{®Gáz”?gš™™™™™É?i
   c      /   C   sª   t  j j j ƒ  } | j d |  d | d | d | d | d | d | d | d	 | d
 |	 d |
 d | d | d | d | d | d | d | d | d | d | d | d | ƒ | S(   s'  
    Select method to build ncs_group_object

    order of implementation:
    1) rotations,translations
    2) transform_info
    3) ncs_selection_params
    4) ncs_phil_groups
    5) spec file
    6) mmcif file
    7) iotbx.pdb.hierarchy.input object

    Args:
    -----
      pdb_hierarchy_inp: iotbx.pdb.hierarchy.input
      transform_info: object containing MTRIX or BIOMT transformation info
      rotations: matrix.sqr 3x3 object
      translations: matrix.col 3x1 object
      ncs_selection_params: Phil parameters
        Phil structure
           ncs_group (multiple)
           {
             master_selection = ''
             copy_selection = ''   (multiple)
           }
      ncs_phil_groups: a list of ncs_groups_container object, containing
        master NCS selection and a list of NCS copies selection
      file_name: (str) .ncs_spec or .mmcif  or .pdb file name
      file_path: (str)
      spec_file_str: (str) spec format data
      spec_source_info:
      quiet: (bool) When True -> quiet output when processing files
      spec_ncs_groups: ncs_groups object as produced by simple_ncs_from_pdb
      cif_string: (str) string of cif type data
      use_cctbx_find_ncs_tools: (bool) Enable using of chain base NCS search
      use_simple_ncs_from_pdb: (bool) Enable using use_simple_ncs_from_pdb
      use_minimal_master_ncs: (bool) use maximal or minimal common chains
        in master ncs groups
      rms_eps (float): limit of rms difference between chains to be considered
        as copies
      error_msg_on (bool): When True, raise error if chains that are
        nearly the same length (but not exactly the same) and are NCS related.
        Raise error if NCS relations are not found
      process_similar_chains (bool): When True, process chains that are close
       in length without raising errors
      min_fraction_domain (float): Threshold for similarity between chains
        similarity define as:
        (number of matching res) / (number of res in longer chain)
      min_contig_length (int): minimum length of matching chain segments
    t   pdb_hierarchy_inpt   pdb_inpt   transform_infot	   rotationst   translationst   ncs_selection_paramst   ncs_phil_groupst	   file_namet	   file_patht   spec_file_strt   spec_source_infot
   cif_stringt   quiett   spec_ncs_groupst
   pdb_stringt   use_cctbx_find_ncs_toolst   use_simple_ncs_from_pdbt   use_minimal_master_ncst   rms_epst   error_msg_ont   process_similar_chainst   min_fraction_domaint   min_contig_length(   t   iotbxt   ncst   ncs_preprocesst   ncs_group_objectt   preprocess_ncs_obj(   R   R   R   R   R   R   R   R	   R
   R   R   R   R   R   R   R   R   R   R   R   R   R   R   t   ncs_group_obj(    (    s@   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/iotbx/ncs/__init__.pyt   input   s4    I	(   t
   __future__R    t   iotbx.ncs.ncs_preprocessR   t   Nonet   Truet   FalseR   (    (    (    s@   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/iotbx/ncs/__init__.pyt   <module>   s0   