
    DUf                     f   d dl Z ddlmZ ddlmZ  ej                     e j        dd           e j        d	d
dd          d                                     Z ej                     e j        de           e j        de           e j        ddddd          d                                                 Z	 ej                     e j        de           e j        de           e j        ddddd           e j        ddddd          d                                                             Z
 ej                     e j        de           e j        de           e j        ddddd          d                                                 Z ej                     e j        de           e j        dde          d                                      Z ej                     e j        de           e j        dde          d!                                     ZdS )"    N   )fileops   )cli	cool_path	COOL_PATH)metavarz--longz-lzLong listing formatT)helpis_flagc                     ddl m} t          j        |           D ]U}| dz   |z   }|r5 ||          j        }|| d}n| d|d}t          j        |           At          j        |           VdS )z*
    List all coolers inside a file.

    r   )Coolerz::Nz	<variable>	,)apir   r   list_coolersbinsizeclickecho)r   longr   
group_pathurir   ss          O/var/www/html/software/conda/lib/python3.11/site-packages/cooler/cli/fileops.pylsr      s     *955 
 

$+ 	fSkk)G((())g)))JqMMMMJsOOOO
 
    src_uri)typedst_uriz--overwritez-wz;Truncate and replace destination file if it already exists.F)r
   r   defaultc                 4    t          j        | ||           dS )z
    Copy a cooler from one file to another or within the same file.

    See also: h5copy, h5repack tools from HDF5 suite.

    	overwriteN)r   cpr   r   r"   s      r   r#   r#      s!    4 Jw9555555r   z--softz-szCreates a soft link rather than a hard link if the source and destination file are the same. Otherwise, creates an external link. This type of link uses a path rather than a pointer.c                 6    t          j        | |||           dS )z
    Create a hard link to a cooler (rather than a true copy) in the same file.
    Also supports soft links (in the same file) or external links (different
    files).

    )r"   softN)r   ln)r   r   r"   r&   s       r   r'   r'   ;   s#    4 Jw94@@@@@@r   c                 4    t          j        | ||           dS )z0
    Rename a cooler within the same file.

    r!   N)r   mvr$   s      r   r)   r)   X   s!     Jw9555555r   r   z-Lz--levelc                 X    t          j        | |          }t          j        |           dS )z+
    Display a file's data hierarchy.

    N)r   pprint_data_treer   r   r   levelts      r   treer/   j   '     	 e,,A	JqMMMMMr   c                 X    t          j        | |          }t          j        |           dS )z0
    Display a file's attribute hierarchy.

    N)r   pprint_attr_treer   r   r,   s      r   attrsr3   v   r0   r   )r    r   r   commandargumentoptionr   strr#   r'   r)   intr/   r3    r   r   <module>r;      s-                [111h#8$GGG  HG 21 ( 	$$$	$$$	F  6 6  %$ %$ 6& 	$$$	$$$	F   
;   A A   %$ %$ &A 	$$$	$$$	F  6 6  %$ %$ 6 C   dIC(((  )( !   C   dIC(((  )( !    r   