Implement type designator using 'type' field for technique-specific sample preparation#14
Implement type designator using 'type' field for technique-specific sample preparation#14cmungall wants to merge 1 commit into
Conversation
…ample preparation - Rename preparation_type field to 'type' with designates_type: true - Make CryoEMPreparation, XRayPreparation, SAXSPreparation inherit from SamplePreparation - Update all example data to use new type designator pattern - Remove PreparationTypeEnum in favor of string-based type designators - Generate polymorphic JSON schema with anyOf unions for sample_preparations This enables capturing rich technique-specific metadata (blot_time, crystallization_method, etc.) while maintaining proper inheritance and type safety. Resolves #3 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: Chris Mungall <cmungall@users.noreply.github.com>
|
Claude finished @cmungall's task —— View job Pull Request ReviewReviewing PR #14: Implement type designator using 'type' field for technique-specific sample preparation Tasks:
SummaryThis PR successfully implements polymorphic sample preparation with technique-specific classes using LinkML's ✅ Positive Aspects
❌ Critical Issues1. Test File Structure ErrorFile: The test file is structured as a bare Study object instead of a Dataset root: id: biostride:study_integrative_nucleosome # Should be wrapped in a Dataset
title: "Integrative structural analysis..."
samples: [...] # This causes validation failureFix: Wrap the Study in a Dataset structure like other test files.
|
This resolves the issue where rich technique-specific preparation metadata could not be attached to SamplePreparation objects.
Key changes:
This enables capturing critical preparation metadata for cryo-EM, X-ray crystallography, and SAXS techniques.
Resolves #3
🤖 Generated with Claude Code