-
Notifications
You must be signed in to change notification settings - Fork 2
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
Clearer error message when sequences submitted without segment identifiers for segmented virus #3683
Comments
EDIT: Nevermind, it's in the backend of course (thanks Anna for pointing it out to me!) |
Ok, so, I have some updates here.
Actually, the submission IDs in the screenshot do contain a segment identifier, because whatever comes after the last underscore becomes the segment identifier. so I thought "well, let's make sure that the segment is actually one of the configured segments, and I did that in #3769 and that works! But now Chaoran told me that it is actually by design that we do not enforce the segment names, because the pipeline is supposed to handle this. Analogous to how we allow submitting arbitrary metadata fields and let the pipeline handle it. So, actually, the error message is correct and "Error: some sequence headers do not contain segment identifiers" wouldn't be right, all the submission IDs do in fact contain a segment name. I don't see an obvious way to fix this, so I thought I'd ask for input again! |
Hmm thanks! I don't have a problem in principle with the idea of the pipeline handling it - and in general I like the idea of giving the pipeline lots of flexibility. It's just that here the backend does do logic that assumes that these are formatted as id_segment things - and here there is a problem (for the backend) because they are not formatted like that, and it would be nice for us to give a more useful error. The question would be what the use-case that is prompting us to give the pipeline flexibility to do this. One idea would be that we would want to support bacterial contigs (#3539) and they might be: |
Apparently one gets an error message like this:
One should get a message like.
Error: some sequence headers do not contain segment identifiers. Sequence headers should end with a segment identifier, e.g. "mysample_S", "mysample_L", etc., whereas you entered:
https://loculus.slack.com/archives/C05G172HL6L/p1739441563468129
The text was updated successfully, but these errors were encountered: