-
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
Feature to manually mark analyses to start after top up #3971
Comments
Second clarificationThere are two situations (that I know) in which a sample will be sent for top-up:
The problem described in this issue concerns only the second situation, as in the first one, the sample will be taken by the automation when the desired number of reads is reached. In the second case, the automation will never start again the analysis as it is labelled as already run. |
Will the automation not already pick this up whem there is new seq data for a sample which is newer than the latest analysis and action is None? def _is_latest_analysis_done_on_all_sequences(self, case: Case) -> bool:
return case.latest_analyzed < case.latest_sequenced |
Yes, I was thinking exactly of this @henrikstranneheim! |
But should that case not warrant a manual investigation? It might fail for number of reasons. |
Hi! Yes, @beatrizsavinhas, this would fall under case 2, as stated in the second clarification by @diitaz93, right? @henrikstranneheim, that’s true. If the investigation reveals a need for a top-up, then the Top-up action could be useful. Do you agree? There might be a better solution to this. If there’s something I’m unaware of, I’m happy to learn! |
Not sure, it would not have any function in cg and it would complicate the logic that finds cases to start, (which is already complicated). Unsure of that it is worth it compare to just a comment in TB and let the automation pick it up once ready. |
Okay, I see @henrikstranneheim. It’s just that the automation doesn’t pick it up for pipelines like mip-dna. I do agree that it would affect the start logic and require changes in CG. The benefit, as I see it, would be that a sample could be started during the nighttime, reducing turnaround time. Additionally, in my view, it would lessen the risk of missing a case restart. |
It would be vital that we restart cases whenever new data is available. @Karl-Svard brought up that if we re-demultiplex we would not want to start things because of the new "latest_sequenced_at" date. We will have to refine the acceptance criteria at a later meeting. |
Suggestion for acceptance criteria:
Considerations:
|
Hhmm, tricky one. @RasmusBurge-CG Do you have an example of a case that is not picked up and do you have any reason why. @beatrizsavinhas Can't you set the case action to "analyze"? |
I don't think that would work as intended @henrikstranneheim because if the case is set to But as @karlnyr mentioned, we will still discuss this issue in our next meeting! |
I think setting the case action to
|
That would restart the case instantly. Since there is no analysis object in statusdb (only created when we have a completed case), and there is sequence data. What we want, is to queue the analysis for start after it has been sequenced again. Meaning, that there is not analysis object in statusdb, there is sequencing data, but what we need is to check if there is new sequencing data that has been added to the sample. This could be done in a lot of ways- perhaps checking if there is an analysis already in trailblazer that is failed - if so, it means that we have once started the case but something was up and then check if the latest sequencing date is after the start of that trailblazer analysis. Or, you could check if more than one flow cell exists on the sample. OR we could start creating analysis objects upon start, but that would require some changes to existing logic, and perhaps some new fields 👍 SO many choices edit: something I though of is that we could in fact make lims set the case for the sample to analyze if it gets enough reads in sequence aggregation. Or even do that in the post-processing of demux |
@Clinical-Genomics/sysdev We have tried to clarify this user story and updated the acceptance criteria |
As a member of prod bioinfo,
I want to have a manual way to mark an analysis to start when new sequencing data is available,
So that analysis would start automatically when new data is available for cases that have been topped up.
Clarification
It’s very easy to overlook manually starting cases after a top-up, which has the potential to cause significant delays in processing samples (potentially devastating for critically ill patients). To prevent this and avoid unnecessary sample processing, one could mark the analysis to be started once there is new sequencing data. This way, when new data becomes available for that case, the automation will pick up the sample and start it. Additionally, there is potential for integration with LIMS: when a sample is requeued for top-up, it could automatically update the status in StatusDB.
Work impact
Answer the following questions:
Acceptance Criteria
Notes
The text was updated successfully, but these errors were encountered: