-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set minimal metadata also for empty bed datasets #17586
Conversation
Seems to make total sense to me. Would you then say that Since for text based datatypes this will always copy the number of lines one should make sure in a tool test that the number of lines is set correctly, isn't it? Was also wondering about the 2nd sentence of the docs.
So, maybe we can use this opportunity to improve the docs as well. Maybe add the info that built in metadata setting is still running (which was surprising for me.. but makes total sense). Not sure if this should be a Bugfix and target an earlier branch. |
That's a bit difficult to do in practice. I guess one of the main reasons to use
That's a very reasonable thing to do it seems, yes 👍 |
Ah wait, that's what |
So I think galaxy/lib/galaxy/datatypes/interval.py Lines 143 to 153 in 7280ecd
nor: galaxy/lib/galaxy/datatypes/interval.py Lines 154 to 170 in 7280ecd
succeed. So, in a sense, the documentation:
is correct. It's just complicated to understand what's going on. |
Maybe a good way to put it is that the |
@bernt-matthias like this? |
Currently, set_metadata does nothing for empty bed datasets, however, for tools like
gops_intersect
that usemetadata_source="input1"
for their output, this means thatdata_lines
gets inherited from the input, which subsequently shows up in the blurb of the dataset and is very confusing for users, who see that Galaxy thinks there is data there, but then they can't display it.How to test the changes?
(Select all options that apply)
I've included appropriate automated tests.
This is a refactoring of components with existing test coverage.
Instructions for manual testing are as follows:
using built-in tools
The result will be an empty bed that claims to have 1 region without the patch and 0 regions (correct answer) with it.
License