From bfd791111f9d745569fe49c1568ee0e90a1bad24 Mon Sep 17 00:00:00 2001 From: Dave Lawrence Date: Fri, 25 Oct 2024 11:44:34 +1030 Subject: [PATCH] issue #76 - Need to pass up path for SAP signal enrichment kit --- seqauto/management/commands/seqauto_api_client2.py | 4 +++- seqauto/serializers/sequencing_serializers.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/seqauto/management/commands/seqauto_api_client2.py b/seqauto/management/commands/seqauto_api_client2.py index 81e81398c..8d068b88c 100755 --- a/seqauto/management/commands/seqauto_api_client2.py +++ b/seqauto/management/commands/seqauto_api_client2.py @@ -23,6 +23,7 @@ class EnrichmentKit: @dataclass_json @dataclass class SequencingRun: + path: str name: str date: date sequencer: str @@ -324,7 +325,8 @@ def handle(self, *args, **options): experiment = "HAEM_20_999" enrichment_kit = EnrichmentKit(name='idt_haem', version=1) - sequencing_run = SequencingRun(name="Haem_20_999_201231_M02027_0112_000000000_JFT79", + sequencing_run = SequencingRun(path=self.HAEM_DIR, + name="Haem_20_999_201231_M02027_0112_000000000_JFT79", date="2020-12-31", sequencer="SN1101", experiment=experiment, diff --git a/seqauto/serializers/sequencing_serializers.py b/seqauto/serializers/sequencing_serializers.py index f7f0952f2..7c65da32c 100644 --- a/seqauto/serializers/sequencing_serializers.py +++ b/seqauto/serializers/sequencing_serializers.py @@ -131,7 +131,7 @@ class SequencingRunSerializer(serializers.ModelSerializer): class Meta: model = SequencingRun - fields = ("name", "date", "sequencer", "gold_standard", "bad", "hidden", "experiment", "enrichment_kit", "has_basecalls", "has_interop") + fields = ("path", "name", "date", "sequencer", "gold_standard", "bad", "hidden", "experiment", "enrichment_kit", "has_basecalls", "has_interop") def create(self, validated_data): name = validated_data.get('name')