MegaQC
MegaQC copied to clipboard
Create separate sample_data_type records for different sections
PR Checklist
- [x] This comment contains a description of changes (with reason)
- [x] Referenced issue is linked
- [ ] If you've fixed a bug or added code that should be tested, add tests!
- [ ] Documentation in
docsis updated - [ ]
docs/changelog.mdis updated
Description of changes
- Fixes https://github.com/MultiQC/MegaQC/issues/530
- When handling a report, megaqc checks to see if that
SampleDataTypealready exists. However it only checks on the basis ofdata_id, but ignoresdata_section. Therefore if multiple report types (data sections) reuse the samedata_id, currently this will reuse thatSampleDataTypeeven ifdata_sectionis wrong for the incoming report.
- When handling a report, megaqc checks to see if that
- This PR adjusts the logic so that it checks for previous
SampleDataTypeentries based ondata_key, which includes bothdata_idanddata_section.