modules icon indicating copy to clipboard operation
modules copied to clipboard

[COOLER] run through multiple resolutions

Open nservant opened this issue 2 years ago • 5 comments

Hi

A small changes to allow to run the cload and dump cooler functions across multiple resolutions Thanks Nicolas

nservant avatar Mar 17 '22 19:03 nservant

Note that I also proposed to change the channel to have always the resolution at the end to avoid the usage of map to change the order

nservant avatar Mar 17 '22 19:03 nservant

Should the test files also be changed?

jianhong avatar Mar 22 '22 13:03 jianhong

Sorry @jianhong, I missed your message ! I'll check the test files !

nservant avatar May 05 '22 11:05 nservant

@jianhong, I just updated the tests. However, I'm not very familiar with modules and did not yet find a way to test my changes locally ... do you know how to do it ?

nservant avatar May 05 '22 12:05 nservant

@jianhong, I just updated the tests. However, I'm not very familiar with modules and did not yet find a way to test my changes locally ... do you know how to do it ?

I will do that. But I need some time to finish it.

Jianhong.

jianhong avatar May 05 '22 13:05 jianhong

Hi @nservant

Can you explain what you mean by "allow to run the cload and dump cooler functions across multiple resolutions" ? I don't see how that's not possible with the existing version.

muffato avatar Sep 28 '22 07:09 muffato

I took a look at the tests, and there is an issue in cooler/dump. The module appends the resolution to the name of the input file, cf https://github.com/nf-core/modules/blob/ec22f9a9079bd93ff8ec152349ead5f684edeb9f/modules/cooler/dump/main.nf#L29 , which makes the path invalid and cooler complain that the file doesn't exist. I suggest removing the resolution parameter from cooler/dump altogether because it's not used at all. But then, in order to be able to chain both modules without a map, cooler/cload shouldn't output cool_bin at all either. Just meta and the cool file. How would that work for you ?

muffato avatar Sep 28 '22 09:09 muffato

Hi. I actually now think it'd be easier to address these comments in #1937 since the latter contains these changes. I'll close this PR and reraise my comments over there.

muffato avatar Oct 02 '22 14:10 muffato