Clinical-Genomics / cg

Glue between Clinical Genomics apps

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add flexibility to the sample sheet validation

diitaz93 opened this issue · comments

Description

This week a flow cell needed to have manual modifications to its sample sheet, in a way that it failed the implemented validation. This modified sample sheet will be needed when the flow cell is set for re-demultiplexing. However, at the start of the demultiplexing, the automation overwrites any sample sheet (in Housekeeper or in the Flow cell directory) that fails validation with a new one. This means that the modified sample sheet can't be saved in Housekeeper or in the flow cell directory as a normal sheet.

Suggested solution

We most likely need to allow sample sheets that fail validations for these cases somehow, but it is unclear how.

This can be closed when

This flow cell can be re-demultiplexed without errors

Blocked by

If there are any blocking issues/prs/things in this or other repos. Please link to them.

Set for refinement 2024-05-29 @Karl-Svard @karlnyr

I understand that the modified sample sheet has different copies of the same sample in the same lane, but with different sets of indices. This will make the sample sheet fail validation in the function validate_samples_are_unique

Decision:

  • Modify the validation so that if the sample sheet has the correct format but fails in content, do not recreate, raise an error(warning) in the cg demultiplex samplesheet create-all.

@diitaz93 I will move this to the ready column in trocadero since the issue has been refined.

Acceptance criteria

  • The old Bcl2Fastq sample sheets should still be overwritten
  • BCLConvert sample sheets that fail validation should not be re-generated
  • Demultiplexing should be possible with a manually modified BCLConvert sample sheet with all sections
  • Exceptions should be caught so that the demultiplexing or sample sheet generation is not stopped in production