a
    £žbŒ  ã                   @   s8   d dl mZ g d¢ZdZdZi Zd
dd„Zddd	„ZdS )é    )Úqconfig)z#E31A1Cz#1F78B4z#33A02Cz#6A3D9Az#FF7F00z#800000z#A6CEE3z#B2DF8Az#333300z#CCCC00z#000080z#008080z#00FF00ZsolidZdashedNc                    sœ   ddl m‰  |s"‡ fdd„| D ƒ}ts˜d}t| ƒD ]d\}}t}|| }|rr|tjv rrtˆ  tj| ¡ d }t}nt	|t
t	ƒ  }|d7 }||ft|< q2d S )Nr   ©Úqutilsc                    s   g | ]}ˆ   |¡‘qS © )Úlabel_from_fpath)Ú.0Úfpathr   r   úA/home/psgendb/BIRCHDEV/pkg/quast-5.2.0/quast_libs/plotter_data.pyÚ
<listcomp>   ó    z&save_colors_and_ls.<locals>.<listcomp>é   )Ú
quast_libsr   Údict_color_and_lsÚ	enumerateÚprimary_line_styler   Údict_of_broken_scaffoldsr   Úsecondary_line_styleÚcolorsÚlen)ZfpathsÚlabelsZcolor_idÚir   ZlsÚlabelZcolorr   r   r	   Úsave_colors_and_ls   s    r   c                 C   s*   ddl m} |s| | ¡}ts"dS t| S )Nr   r   )NN)r   r   r   r   )r   r   r   r   r   r	   Úget_color_and_ls)   s    
r   )N)N)r   r   r   r   r   r   r   r   r   r   r   r	   Ú<module>   s   
