Skip to content

Commit

Permalink
✨ Actually ingest sample
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-s-friedman committed May 21, 2024
1 parent 8ecc8c3 commit 6a26596
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ def submit(cls, host, body):
return submit(host, cls, body)


class BiospecimenGroup:
class Sample:
class_name = "sample"
api_path = "samples"
target_id_concept = CONCEPT.BIOSPECIMEN_GROUP.TARGET_SERVICE_ID
Expand Down Expand Up @@ -537,7 +537,7 @@ def build_entity(cls, record, get_target_id_from_record):
CONCEPT.BIOSPECIMEN.DBGAP_STYLE_CONSENT_CODE
),
"consent_type": record.get(CONCEPT.BIOSPECIMEN.CONSENT_SHORT_NAME),
"sample_id": get_target_id_from_record(BiospecimenGroup, record),
"sample_id": get_target_id_from_record(Sample, record),
}
return {
**cls.get_key_components(record, get_target_id_from_record),
Expand Down Expand Up @@ -991,6 +991,7 @@ def _GET(host, api_path, body):
Diagnosis,
Phenotype,
Outcome,
Sample,
Biospecimen,
GenomicFile,
ReadGroup,
Expand Down

0 comments on commit 6a26596

Please sign in to comment.