
    {Ti|                     h    d Z ddlmZ  G d dej                        Z G d dej                        Zy)zrClasses corresponding to NeXML trees.

See classes in ``Bio.Nexus``: Trees.Tree, Trees.NodeData, and Nodes.Chain.
    )BaseTreec                       e Zd ZdZddZy)TreezNeXML Tree object.Nc                 r    t         j                  j                  | |xs
 t               |||       || _        y)z:Instantiate a NeXML tree object with the given parameters.)rootrootedidnameN)r   r   __init__Cladeweight)selfr   r   r	   r
   r   s         B/home/agent/.local/lib/python3.12/site-packages/Bio/Phylo/NeXML.pyr   zTree.__init__   s3    tuwv"4 	 	
     )NFNN      ?__name__
__module____qualname____doc__r    r   r   r   r      s
    r   r   c                   "    e Zd ZdZ	 	 	 	 	 ddZy)r   zNeXML Clade (sub-tree) object.Nc                     t         j                  j                  | ||||       || _        |j	                         D ]  \  }}t        | ||        y)z-Initialize parameters for NeXML Clade object.)branch_lengthr
   clades
confidenceN)r   r   r   commentitemssetattr)	r   r   r
   r   r   r   kwargskeyvalues	            r   r   zClade.__init__   sX     	'! 	  	
  ,,. 	&JCD#u%	&r   )r   NNNNr   r   r   r   r   r      s    ( &r   r   N)r   	Bio.Phylor   r   r   r   r   r   <module>r$      s/   
 8== &HNN &r   