Skip to content

rebalancing all coolers in an .mcool #413

Answered by nvictus
golobor asked this question in Q&A
Discussion options

You must be logged in to vote
for i in `cooler ls foo.mcool`; do
    cooler balance {options} $i;
done

any change cooler balance could be extended to assist users in this (common) task?

Since all cooler commands operate on single coolers and this task needs to be done sequentially anyway, cooler ls is really the concept to teach.

Extending commands to operate on mcools or larger collections opens up a lot of surface area and needs some thought. For now, probably better to better document or make this answer more visible.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nvictus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants