
    DUf                        d dl Z d dlZddlmZ d dlZddlmZ  ej                     ej        dded           ej        d	d
ed           ej	        ddedd           ej	        dddd           ej	        dddd           ej	        dddde
          d                                                                                     ZdS )    N   )api   )cli	cool_path	COOL_PATH)metavartypenargs	viewpoint	VIEWPOINTz--clr-weight-namezxUse balancing weight with this name. Provide empty argument to calculate insulation on raw data (no masking bad pixels).weightT)helpr
   defaultshow_defaultz-oz--out-prefixz[Save virtual 4C track as a BED-like file. Contact frequency is stored in out_prefix.v4C.tsv)r   requiredz--bigwigzKAlso save virtual 4C track as a bigWig file with the name out_prefix.v4C.bwF)r   is_flagr   z-pz--nproczQNumber of processes to split the work between. [default: 1, i.e. no process pool])r   r   r
   c                    t          j        |           }t          j        j                            |          }t          j                            |||r|nd|          }|r\|                    |dz   ddd           |r=t          j	        |
                                |j        |dz   |j        d	         
           n%t          |                    ddd                     dS )a  
    Generate virtual 4C profile from a contact map by extracting all interactions of a
    given viewpoint with the rest of the genome.


    COOL_PATH : the paths to a .cool file with a Hi-C map. Use the '::' syntax to
    specify a group path in a multicooler file.

    VIEWPOINT : the viewpoint to use for the virtual 4C profile. Provide as a UCSC-string
    (e.g. chr1:1-1000)
    

    Note: this is a new (experimental) tool, the interface or output might change in a
    future version.
    N)clr_weight_namenprocz.tsv	Fnan)sepindexna_repz.bw   )value_field)coolerCoolerbioframecore	stringopsparse_region_stringr   	virtual4cto_csv	to_bigwigdropna
chromsizescolumnsprint)r   r   r   
out_prefixbigwigr   clrv4cs           T/var/www/html/software/conda/lib/python3.11/site-packages/cooltools/cli/virtual4c.pyr$   r$   
   s    n -	
"
"C';;IFFI
-
!
!+:D	 "  C  
?

:&De
LLL 	

U"KN	    	cjjTuj==>>>
F    )r   r     r   clickr   commandargumentstroptionintr$    r0   r/   <module>r9      sy                  [s!DDD[s!DDD
Z	   
9   	V	   
*	  , ,     ED ED @, , ,r0   