hi does someone know if there is a `zarr` structur...
# microscopy
c
hi does someone know if there is a
zarr
structure in the
test-dataset
repo?
πŸ‘€ 1
t
not as far as I know. But public s3 should also work I assume?
πŸ‘€ 1
t
t
I assume you need the data for
tests
? I think we've just found out that using a bespoke url to some random bucket does work with
nf-test
but not
nf-core modules test
. Since the later one overwrites
params.modules_testdata_base_path
So, better to PR one minimal test data to
test-datasets
πŸ‘€ 1
We might have to do the same for label image
c
i will have a look but what i also noticed is that github raw cannot be used for a directory? maybe i also using it wrong somehow but for zarr it didn’t work for me. And yes i need it as a test dataset. For now my pragmatic workaround for the module
raw2ometiff
was to include a zarr image so i can have the relative path for my tests.
and what i also noticed is that
raw2ometiff
fails the test for me when it’s comparing the md5 sums of the output tiff. Again, I’m not so sure if i do something wrong here or if the process is just not deterministic.
ah and i need to check if the thing with
nf-core modules test
and
params.modules_testdata_base_path
has something to do with the failing test. ( the second snapshot that is created there the md5 sums for the tiff files are not matching)
t
actually, according to @Kobe Lavaerts if you add the last line here:
Copy code
name "Test Process IMAGESEGMENTATIONMETRICS"
    script "../main.nf"
    process "IMAGESEGMENTATIONMETRICS"
    config "./nextflow.config"
it should take your nextflow.config file in the
tests
folder
πŸ‘€ 1
j
A ZipStorage zarr should work with a github raw URL (rather than a DirectoryStorage zarr). For a tiny test example it shouldn't be a problem to have all the chunks in one zip file.
πŸ‘ 2
t
I assume one will need to unzip for accessing? Or use a zipstore specific loader?
j
Depends on which library is being used to access it. The Python
zarr.open
function for example should just automatically do the right thing.
πŸ‘ 1
(maybe the zarr v3 API changes this?)
t
I guess we need to give it a try πŸ™‚ ? - Didn't know that
zarr.open
can do that! Will give it a try!
j
(It’s being readded for zarr v3 πŸ˜‰)
πŸ‘ 1