-
Hi,
I want to coarse it while keeping "cov_cis_raw" and "cov_tot_raw" columns, but when I coarse it:
I was wondering if there is a way to coarse keeping those columns. Best, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I don't think cooler coarsen can do this for you. You can probably achieve something like that using plain |
Beta Was this translation helpful? Give feedback.
-
Correct. We don't currently provide a way to coarsen bin columns, since there are many ways one could do it and in many cases it's not a good idea (e.g. like balancing weights). For coverage it is straightforward to do manually and you can append the new column using the lower level with clr.open("r+") as f: # f is an h5py.Group
f["bins/cov_cis_raw"] = data or with clr.open("r+") as f:
f["bins"].create_dataset(name="cov_cis_raw", data=data, compression="gzip", compression_opts=6) to also apply compression to the new column. |
Beta Was this translation helpful? Give feedback.
Correct. We don't currently provide a way to coarsen bin columns, since there are many ways one could do it and in many cases it's not a good idea (e.g. like balancing weights).
For coverage it is straightforward to do manually and you can append the new column using the lower level
h5py
interface as @sergpolly suggested:or
to also apply compression to the new column.