
    Ri                     0    d Z ddlZddlmZ  G d d      Zy)zExtract information from alignment objects.

In order to try and avoid huge alignment objects with tons of functions,
functions which return summary type information about alignments should
be put into classes in this module.
    N)BiopythonDeprecationWarningc                       e Zd ZdZd Zd Zy)SummaryInfozCalculate summary info about the alignment.  (DEPRECATED)

    This class should be used to calculate information summarizing the
    results of an alignment. This may either be straight consensus info
    or more complicated things.
    c                 T    t        j                  dt               || _        g | _        y)zInitialize with the alignment to calculate information on.

        ic_vector attribute. A list of ic content for each column number.
        aS  The class SummaryInfo has been deprecated. Instead of

>>> align_info = AlignInfo.SummaryInfo(msa)
>>> sequence = align_info.get_column(1)

please use

>>> alignment = msa.alignment  # to get a new-style Alignment object
>>> sequence = alignment[:, 1]

Here, `msa` is a MultipleSeqAlignment object and `alignment` is an
`Alignment` object.N)warningswarnr   	alignment	ic_vector)selfr	   s     K/home/agent/.friday_env/lib/python3.12/site-packages/Bio/Align/AlignInfo.py__init__zSummaryInfo.__init__   s*    
 	 (	
  #    c                 (    | j                   dd|f   S )zReturn column of alignment.N)r	   )r   cols     r   
get_columnzSummaryInfo.get_column3   s     ~~af%%r   N)__name__
__module____qualname____doc__r   r    r   r   r   r      s    0&r   r   )r   r   Bior   r   r   r   r   <module>r      s     +#& #&r   