Hi, wasn't sure where to ask this since is regardi...
# modules
v
Hi, wasn't sure where to ask this since is regarding test data. I'm adding a new module and I would like to have a test case where I provide a directory as input, since the tool has that option (rather than having a file as input). I've been having trouble since it looks like test_data only supports individual files. Is there a way to stage a whole directory? Happy to provide more details as needed. TIA
✅ 1
j
Currently our workaround is to make a
tar.gz
archive that you upload and then use a
setup
block to unpack the directory and pass it to the module itself
👍🏼 1
j
I reckon you could also write some funky Groovy in the nf-test setup block, see e.g. https://github.com/sanger-tol/metagenomeassembly/blob/dev/tests/default.nf.test Download the files to a directory in
launchDir
manually, then pass the path to that directory. Might not be very “nf-core” though!
j
Oh and that ☝️
But I would say try it and we discuss in review how nf-core-y it is 😉
🫢 1
v
Thanks, I've followed the suggestion of using a
setup
block and the
UNTAR
module output