Ë
    ýRúi   ã                   ó„   — d Z 	 ddlmZ ddlmZ ddlmZ dd	l	m
Z
 d
„ Z G d„ d«      Zy# e$ r ddlmZ  ed«      d‚w xY w)z7Support for loading 3D structures stored in MMTF files.é    )Úfetch)Úparse)ÚMissingPythonDependencyErrorz?Install mmtf to use Bio.PDB.mmtf (e.g. pip install mmtf-python)N)ÚStructureDecoderé   )ÚMMTFIOc                 ól   — t        «       }| j                  |«       |j                  j                  «       S )zReturn structure from decoder.)r   Úpass_data_onÚstructure_builderÚget_structure)ÚdecoderÚstructure_decoders     úM/home/agent/.friday_env/lib/python3.12/site-packages/Bio/PDB/mmtf/__init__.pyÚget_from_decodedr      s/   € ä(Ó*ÐØ×ÑÐ*Ô+Ø×.Ñ.×<Ñ<Ó>Ð>ó    c                   ó0   — e Zd ZdZed„ «       Zed„ «       Zy)Ú
MMTFParserz<Class to get a Biopython structure from a URL or a filename.c                 ó.   — t        | «      }t        |«      S )z~Get a structure from a URL - given a PDB id.

        :param pdb_id: the input PDB id
        :return: the structure

        )r   r   )Úpdb_idr   s     r   Úget_structure_from_urlz!MMTFParser.get_structure_from_url!   s   € ô ˜“-ˆÜ Ó(Ð(r   c                 ó.   — t        | «      }t        |«      S )zˆGet a structure from a file - given a file path.

        :param file_path: the input file path
        :return: the structure

        )r   r   )Ú	file_pathr   s     r   r   zMMTFParser.get_structure,   s   € ô ˜	Ó"ˆÜ Ó(Ð(r   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ústaticmethodr   r   © r   r   r   r      s+   „ ÙFàñ)ó ð)ð ñ)ó ñ)r   r   )r   Úmmtfr   r   ÚImportErrorÚBior   ÚBio.PDB.mmtf.DefaultParserr   Úmmtfior   r   r   r   r   r   ú<module>r$      sS   ðñ >ðÝÝõ 8å ò?÷)ò )øð% ò Ý0á
&ØIóàððús   „* ª?