phc-ingestion 0.9.0__py3-none-any.whl → 0.9.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,7 +9,7 @@ class SpecimenDetails(TypedDict, total=False):
9
9
  specimenCollectionDate: str
10
10
  specimenSite: str
11
11
  specimenType: str
12
- specimenID: str
12
+ specimenID: str | int
13
13
 
14
14
 
15
15
  class ParsedSpecimenDetails(TypedDict):
@@ -26,12 +26,13 @@ def parse_specimen_details(specimen_details: list[SpecimenDetails]) -> ParsedSpe
26
26
  specimen_type = specimen.get("specimenType")
27
27
  if specimen_type and specimen_type not in specimen_types:
28
28
  specimen_types.append(specimen_type)
29
+ maybe_specimen_id = specimen_details[0].get("specimenID")
29
30
 
30
31
  return {
31
32
  "bodySite": specimen_details[0].get("specimenSite", ""),
32
33
  "receivedDate": specimen_details[0].get("specimenReceivedDate", ""),
33
34
  "collDate": specimen_details[0].get("specimenCollectionDate", ""),
34
- "specimenId": specimen_details[0].get("specimenID"),
35
+ "specimenId": str(maybe_specimen_id) if maybe_specimen_id else None,
35
36
  "specimenTypes": specimen_types if specimen_types else None,
36
37
  }
37
38
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: phc-ingestion
3
- Version: 0.9.0
3
+ Version: 0.9.1
4
4
  Summary: Functions for LifeOmic PHC genomic ingestions
5
5
  License: MIT
6
6
  Author-email: LifeOmic Development <development@lifeomic.com>
@@ -10,7 +10,7 @@ ingestion/caris/util/ihc.py,sha256=vegxudxHj7tLihrXGbEx_ptwkSsu3YCCB1nZVwoiYXg,1
10
10
  ingestion/caris/util/interpretation.py,sha256=CghNurqeVA5VTBBorU8-ZTN-PVNPnR8wrmTwKCH3568,555
11
11
  ingestion/caris/util/json.py,sha256=HBU3Tf-XSi9fGHANYUtD8maXNYqmmnpncGh0KCDaPEU,5018
12
12
  ingestion/caris/util/metadata.py,sha256=a6NToMtGtIRrlMd3CQwq4IRjGGmIiBA9JFwsATjNEoQ,10287
13
- ingestion/caris/util/specimen_details.py,sha256=5Tew0uhSa_SGBFEWjHp8wOKmQdeAYsY3-yTB-dEbtE4,2879
13
+ ingestion/caris/util/specimen_details.py,sha256=wDTIelrGelAuSljmE6dAoJRjb9kwrlhmB2f1_vcCiUc,2963
14
14
  ingestion/caris/util/structural.py,sha256=EUcMIea_WnafoVmFLIyEqlJ_HtYIj_g6qkekXa7QNQs,4628
15
15
  ingestion/caris/util/tar.py,sha256=BGR_2vBbxyMgF-GzJ3SrihsPdOzII4SFVz9tvKV5vo0,482
16
16
  ingestion/caris/util/tests.py,sha256=mcG3A8TW81_sn2Bfoa-Gd6Q1sR3_R4FX2BNskD4DkJk,372
@@ -54,6 +54,6 @@ ingestion/vcf_standardization/util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQe
54
54
  ingestion/vcf_standardization/util/af_helpers.py,sha256=dpTzoeIQVeBRt0ETF3a9rp5ojZqznHg4x_hCZ8OPcOg,1061
55
55
  ingestion/vcf_standardization/util/dp_helpers.py,sha256=Nq8oLOLObu4_pv16qwwgpALRlUoJVCULrd9cFOD-eoI,823
56
56
  ingestion/vcf_standardization/util/read_write.py,sha256=x3Pf6Dq8tmolblbCS5CrNmrcHS3FGfqBSFpFgvFGC4g,2526
57
- phc_ingestion-0.9.0.dist-info/WHEEL,sha256=B19PGBCYhWaz2p_UjAoRVh767nYQfk14Sn4TpIZ-nfU,87
58
- phc_ingestion-0.9.0.dist-info/METADATA,sha256=4sKbowdUIImMSp2a_3tm8WPyS7fq8hp-_96HRIZi_H0,572
59
- phc_ingestion-0.9.0.dist-info/RECORD,,
57
+ phc_ingestion-0.9.1.dist-info/WHEEL,sha256=B19PGBCYhWaz2p_UjAoRVh767nYQfk14Sn4TpIZ-nfU,87
58
+ phc_ingestion-0.9.1.dist-info/METADATA,sha256=4V0DH1agvp00fsrJQxOwDVeTDVvDgtdE3TVPg2xdaYc,572
59
+ phc_ingestion-0.9.1.dist-info/RECORD,,