Make Line L4696 in nextNEOpi.nf check if all the files it expects are in place. Maybe that line is not the best place to do so; you are the experts here.
The error caused is this approach is, of course, that the actual reference data is not created. And here I would expect a proper error message.
One cause argue that 'one should not do that', but my colleague had the same error from trying out to get nextNEOpi running. I am unsure what he did, but he was not creating a reprex like I did. Also for him, I would expect a proper error message.
Dear nextNEOpi maintainers,
Here I submit a suggestion as both me and a colleague independently ran into the same problem and both of us would enjoy a better error message.
Below I supply:
I hope you'll agree that this would make nextNEIpi even better :-)
Thanks and cheers, Richel Bilderbeek
Short description of the problem
Line L4696 in nextNEOpi.nf ...
... does not check if the array
YaraIndexDNA
has actual elements, which gives an uninformative error if the reference files needed do not exists:(from this GitHub Actions error log, need to be logged in into GitHub before being able to see it)
Suggested solution
Make Line L4696 in nextNEOpi.nf check if all the files it expects are in place. Maybe that line is not the best place to do so; you are the experts here.
Detailed description with reprex
To reproduce this example, do (and all code is in this GitHub repository):
(which is the same as done in the GitHub Actions script)
As there is no small/testing data yet, I try to create the
reference
folders myself, using the script create_fake_references.sh, which only copies the a file called hg38.len to the right folder.The error caused is this approach is, of course, that the actual reference data is not created. And here I would expect a proper error message.
One cause argue that 'one should not do that', but my colleague had the same error from trying out to get nextNEOpi running. I am unsure what he did, but he was not creating a reprex like I did. Also for him, I would expect a proper error message.