
    DUf/                        d dl Z ddlmZ ddlmZ  ej                     e j        dded           e j        d	d
ed           e j        dddedd           e j        ddedd           e j        ddde	dd           e j        ddd           e j        dddde           e j        dde ed          d          d                                                                                                              Z
dS )!    N   )cli   )apiin_pathIN_PATH)metavartypenargsout_pathOUT_PATHz-cz--countzThe target number of contacts in the sample. The resulting sample size will not match it precisely. Mutually exclusive with --frac and --cis-countF)helpr
   defaultshow_defaultz--cis-countzThe target number of cis contacts in the sample. The resulting sample size will not match it precisely. Mutually exclusive with --count and --fracz-fz--fraczyThe target sample size as a fraction of contacts in the original dataset. Mutually exclusive with --count and --cis-countz--exactzIf specified, use exact sampling that guarantees the size of the output sample. Otherwise, binomial sampling will be used and the sample size will be distributed around the target value. T)r   is_flagz--nprocz-pzPNumber of processes to split the work between.[default: 1, i.e. no process pool])r   r   r
   z--chunksizezBThe number of pixels loaded and processed per step of computation.g    cAc           
      T    t           j                            | |||||||           dS )z
    Pick a random sample of contacts from a Hi-C map.

    IN_PATH : Input cooler path or URI.

    OUT_PATH : Output cooler path or URI.

    Specify the target sample size with either --count or --frac.

    )count	cis_countfracexact	chunksizenprocN)r   sample)r   r   r   r   r   r   r   r   s           Q/var/www/html/software/conda/lib/python3.11/site-packages/cooltools/cli/sample.pyrandom_sampler      sF    @ J  	 	 	 	 	    )click r   r   commandargumentstroptionintfloatr    r   r   <module>r&      s                	93a@@@
JSBBB
5 
	 	 	 
1 
   
6	   
r	   
)	   	M	CHH        	 	 CB A@ h  r   