U
    ‘Ðej  ã                   @   s.   d dl Z d dlmZ deeeedœdd„ZdS )	é    N)ÚDNAIteratorçš™™™™™¹?é   )Ú	sequencesÚsubsample_sizeÚrandom_seedÚreturnc                    s"   t  |¡ ‡ ‡fdd„}t|ƒ ƒS )Nc                  3   s    ˆ D ]} t   ¡ ˆk r| V  qd S )N)Úrandom)Úseq©r   r   © úMlib/python3.8/site-packages/rescript-2024.2.0-py3.8.egg/rescript/subsample.pyÚsample_from_iterator   s    z-subsample_fasta.<locals>.sample_from_iterator)r	   Zseedr   )r   r   r   r   r   r   r   Úsubsample_fasta   s    
r   )r   r   )r	   Zq2_types.feature_datar   ÚfloatÚintr   r   r   r   r   Ú<module>	   s     þ þ