Open neilsycamore opened 3 months ago
Some investigation:
There's a validation method in batch.rb
as follows:
def batch_meets_minimum_size
if min_size && (requests.size < min_size)
errors.add :base, "You must create batches of at least #{min_size} requests in the pipeline #{pipeline.name}"
end
end
References these fields:
Looks like for this story, validation being at a pipeline level is not sufficient, it needs to be specific to the combination of pipeline and flowcell type?
Previous relevant PR (changes for NovaseqX) - https://github.com/sanger/sequencescape/pull/3794 and where flowcell_types was added - https://github.com/sanger/sequencescape/pull/3649
The 'Flowcell type' referenced by the story is recorded in the request_metadata
table as requested_flowcell_type
. It is displayed in the 'Flowcell requested' column in the sequencing inbox table (https://training.sequencescape.psd.sanger.ac.uk/pipelines/52), e.g.:
I think the requirement "Restrict mixing of requests (sample pool) for different types of flowcells (10B, 25B, 1.5B) on the same batch." is already met by the below code, although I haven't tested it.
def requests_have_same_flowcell_type
unless pipeline.is_flowcell_type_consistent_for_batch?(self)
errors.add :base, "The selected requests must have the same values in their 'Flowcell Requested' field."
end
end
@SujitDey2022 could we have some acceptance criteria? Would it be something like:
When selecting requests from the NovaSeq X pipeline inbox (Pipelines tab > NovaSeqX PE):
I've sized this as small as I think it's just adding some more server-side validation in the batch.rb
class.
Thanks @KatyTaylor I was intending to refine the story and acceptance criteria Today. Will get it done...
@KatyTaylor @SujitDey2022 Conversation 15/03/2024 tw6 & tkb • Will you always use 2 flow lanes or is there a possibility that only 1 flow lane could be used? For the NovaSeq X Plus there will only be the following options: 1.5B (Two lane), 10B (Eight lane), 25B (Eight lane) • When do you foresee the next 1.5B flowcell run happening? Our top priority is to get this validation pushed through somehow but after that I have no further visibility but as this is now a product which Illumina provide II expect Faculty will be wanting this option shortly.
Thanks @neilsycamore, this aligns with my discussion with Tris yesterday. I will make a note of open ended questions in my tracker as well.
@KatyTaylor added an additional read length condition based on feedback from Tris.
Work breakdown
(size: S) I can create batches of 2 for NovaSeqX
(size: S) If I select requests where the requested read lengths are different, I am only permitted to create a batch for the same read lengths.
(size: L) Fine-grained batch creation based off request or other data.
Other notes Acceptance criteria: I cannot create a batch containing requests of different types of flow cells types(10B, 25B, 1.5B). Already completed by DPL-783
Following the discussion with @BenTopping , @KatyTaylor and @dasunpubudumal the scope of the story is defined as follows
Batch creation validation in NovaSeq X: When selecting requests from the NovaSeq X pipeline inbox (Pipelines tab > NovaSeqX PE):
This story is dependendant on Y24-121 and this can be implemented only after the completion of it.
Hi @seenanair, I was looking your comment above and noticed that the story that you mentioned as a pre-requisite DPL-783 is already completed. Is the referenced story number correct?
Hi @seenanair, I was looking your comment above and noticed that the story that you mentioned as a pre-requisite DPL-783 is already completed. Is the referenced story number correct?
@SujitDey2022 Sorry, corrected it. The pre-requisite is Y24-121 which Dasun is currently doing.
User story As a High Throughput Short Read Sequencing team lead (Tris), I want the system to check the NovaSeqX submitted samples for 'Flow cell Type' and 'Permitted number of lanes/read lengths' before a sequencing batch is created SO THAT the additional monetary expense incurred due to incorrect sample selection can be avoided.
For the NovaSeqX there following flow cell options:
Who are the primary contacts for this story Tris
Who is the nominated tester for UAT Tris
Acceptance criteria To be considered successful the solution must allow:
Additional context
Comments from Tris and RT raised RT799336
Blocking dependency #4135