
    XfP	                     P    d Z ddlZddlmZ  ej        de           	 	 	 	 d
d	ZdS )zGeneric functions which are useful for working with HMMs.

This just collects general functions which you might like to use in
dealing with HMMs.
    N)BiopythonDeprecationWarningzThe 'Bio.HMM.Utilities' module is deprecated and will be removed in a future release of Biopython. Consider using the hmmlearn package instead.	Emissions
Real StatePredicted StateK   c                 N   t          t          |          t          |          t          |                    dz   }||z
  }|                    |          }|                    |          }|                    |          }d}		 |	|z   t          |           k     r|}
nt          |           |	z
  }
t          | | |	|	|z                        t          | ||	|	|z                        t          |||	|	|z            d           t          |           |	|z   k     rdS |	|z  }	)a=  Print out a state sequence prediction in a nice manner.

    Arguments:
     - emissions -- The sequence of emissions of the sequence you are
       dealing with.
     - real_state -- The actual state path that generated the emissions.
     - predicted_state -- A state path predicted by some kind of HMM model.

       r   T
N)maxlenljustprint)	emissions
real_statepredicted_stateemission_title
real_titlepredicted_title
line_widthtitle_length
seq_lengthcur_position	extensions              1lib/python3.11/site-packages/Bio/HMM/Utilities.pypretty_print_predictionr      s_   & s>**C
OOS=Q=QRRUVVLl*J $)),77N!!,//J%++L99OL#:%Y77"III5IT<z8Q+Q!RTTUUUSZ|j7P(PQSSTTT  |j/H HIII	
 	
 	
 y>>\J677E
"'#    )r   r   r   r   )__doc__warningsBior   warnr    r   r   <module>r"      sx      + + + + + +    	   %0# 0# 0# 0# 0# 0#r   