Skip to content

Commit

Permalink
issue #76 - Need to pass up path for SAP signal enrichment kit
Browse files Browse the repository at this point in the history
  • Loading branch information
davmlaw committed Oct 25, 2024
1 parent 497c37c commit bfd7911
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion seqauto/management/commands/seqauto_api_client2.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class EnrichmentKit:
@dataclass_json
@dataclass
class SequencingRun:
path: str
name: str
date: date
sequencer: str
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion seqauto/serializers/sequencing_serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit bfd7911

Please sign in to comment.