o
    Nrf                     @   s  d dl Z ddlmZ ddlmZ e e jddde jd	d
ddddd Ze e jdede jdede jdddddddd Z	e e jdede jdede jdddddde jdddddddd Z
e e jdede jdede jdddddddd  Ze e jd!ede jd"d#edd$d% Ze e jd!ede jd"d#edd&d' ZdS )(    N   )fileops   )cli	cool_pathZ	COOL_PATH)metavarz--longz-lzLong listing formatT)helpis_flagc                 C   st   ddl m} t| D ],}| d | }|r2||j}|du r$| d}n| d|d}t| qt| qdS )z*
    List all coolers inside a file.

    r   )Coolerz::Nz	<variable>	,)apir
   r   Zlist_coolersbinsizeclickecho)r   longr
   Z
group_pathurir   s r   [/var/www/html/software/conda/envs/catlas/lib/python3.10/site-packages/cooler/cli/fileops.pyls   s   
r   src_uri)typedst_uriz--overwritez-wz;Truncate and replace destination file if it already exists.F)r   r	   defaultc                 C      t j| ||d 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   r   r   r   r      s   r   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                 C   s   t j| |||d 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    r   r   r   r!   ;   s   r!   c                 C   r   )z0
    Rename a cooler within the same file.

    r   N)r   mvr   r   r   r   r"   X   s   r"   r   z-Lz--levelc                 C      t | |}t| dS )z+
    Display a file's data hierarchy.

    N)r   Zpprint_data_treer   r   r   leveltr   r   r   treej      r'   c                 C   r#   )z0
    Display a file's attribute hierarchy.

    N)r   Zpprint_attr_treer   r   r$   r   r   r   attrsv   r(   r)   )r    r   r   commandargumentoptionr   strr   r!   r"   intr'   r)   r   r   r   r   <module>   sn    	
	