phc-ingestion 0.10.20__py3-none-any.whl → 0.11.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.
@@ -106,10 +106,10 @@ def extract_metadata(data, prefix, files, source_file_id, log: Logger) -> dict:
106
106
  patient = data["patientInformation"]
107
107
  metadata["bodySiteSystem"] = "http://lifeomic.com/fhir/sequence-body-site"
108
108
  metadata["reportID"] = get_report_id(test_details)
109
- metadata["mrn"] = patient["mrn"]
110
- metadata["patientLastName"] = patient["lastName"]
109
+ metadata["mrn"] = patient["mrn"].strip()
110
+ metadata["patientLastName"] = patient["lastName"].strip()
111
111
 
112
- metadata["patientDOB"] = patient["dob"]
112
+ metadata["patientDOB"] = patient["dob"].strip()
113
113
 
114
114
  # Get physician info - ordering name, NPI, and facility
115
115
  metadata["medFacilName"] = get_med_facil_name(physician_details)
@@ -180,7 +180,7 @@ def get_test_yml(
180
180
  # Hard-code genome reference for FMI
181
181
  genome_reference = "GRCh37"
182
182
 
183
- mrn = get_mrn(pmi)
183
+ mrn = get_mrn(pmi).strip()
184
184
 
185
185
  trf = get_trf(sample)
186
186
 
@@ -220,8 +220,8 @@ def get_test_yml(
220
220
  "reportDate": reportDate,
221
221
  "reportID": trf,
222
222
  "mrn": mrn,
223
- "patientDOB": get_date(pmi.get("DOB")),
224
- "patientLastName": pmi.get("LastName"),
223
+ "patientDOB": get_date(pmi.get("DOB")).strip(),
224
+ "patientLastName": pmi.get("LastName").strip(),
225
225
  "medFacilName": med_facil_info[0],
226
226
  "medFacilID": med_facil_info[1],
227
227
  "orderingMDName": ordering_md_info[0],
@@ -44,7 +44,6 @@ def check_manifest(manifest_file_path: str, case_id, log: Logger):
44
44
  Optional("plasmaTumorFraction"): str,
45
45
  Optional("cellPurity"): float,
46
46
  Optional("hrdStatus"): str,
47
- Optional("specimenIds"): list[str],
48
47
  }
49
48
  )
50
49
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: phc-ingestion
3
- Version: 0.10.20
3
+ Version: 0.11.1
4
4
  Summary: Functions for LifeOmic PHC genomic ingestions
5
5
  License: MIT
6
6
  Author-email: LifeOmic Development <development@lifeomic.com>
@@ -8,7 +8,7 @@ ingestion/caris/util/hla.py,sha256=X_t6ngBRvmdG3m4I2_KnPFeWn3BaH-3IWHtOvDbS32A,7
8
8
  ingestion/caris/util/ihc.py,sha256=1XfFJjvQq9E45cdPX4EPrg2VkXABxbMJP_BOgzA8z7g,13091
9
9
  ingestion/caris/util/interpretation.py,sha256=CghNurqeVA5VTBBorU8-ZTN-PVNPnR8wrmTwKCH3568,555
10
10
  ingestion/caris/util/json.py,sha256=aifO1hnZwNSS-ZtY20otyGbfIoc23w9HMWJ5D56lhFo,5020
11
- ingestion/caris/util/metadata.py,sha256=a6NToMtGtIRrlMd3CQwq4IRjGGmIiBA9JFwsATjNEoQ,10287
11
+ ingestion/caris/util/metadata.py,sha256=OaEG50FrYqyj1n9u9F3Qt17SX2K0cmIIzI6d8Assj64,10311
12
12
  ingestion/caris/util/specimen_details.py,sha256=wDTIelrGelAuSljmE6dAoJRjb9kwrlhmB2f1_vcCiUc,2963
13
13
  ingestion/caris/util/structural.py,sha256=EUcMIea_WnafoVmFLIyEqlJ_HtYIj_g6qkekXa7QNQs,4628
14
14
  ingestion/caris/util/tests.py,sha256=mcG3A8TW81_sn2Bfoa-Gd6Q1sR3_R4FX2BNskD4DkJk,372
@@ -20,12 +20,12 @@ ingestion/foundation/process.py,sha256=mzKVVefGZD1HkEi0Hbb9eD_flwGp1S6SZ7FNXZpWn
20
20
  ingestion/foundation/util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
21
21
  ingestion/foundation/util/cnv.py,sha256=eyTn1lqbo0tmEacnqWuGATt1h9lllTlVlboT8n5C6Ao,4283
22
22
  ingestion/foundation/util/fnv.py,sha256=B8tOREYsR45aIGdSj8SPpe7f3L8FlGaIhLe0DSNqCnc,6006
23
- ingestion/foundation/util/ga4gh.py,sha256=RqyKuntH5Y-dRpr188i2hR8yc1F_An_8Z9DlGsFa0Sw,11779
23
+ ingestion/foundation/util/ga4gh.py,sha256=GVHjMQNd7RaRg9qX7fStBcW5toLjvJCuHvu6hqm4tAo,11803
24
24
  ingestion/foundation/util/interpretation.py,sha256=LVVUmMyD6Un1rIKXqiyQDUC6oIJUd8cU3I9YHD5fsXg,405
25
25
  ingestion/foundation/util/vcf_etl.py,sha256=GXV5JXswwdyHEEdPsM3Qq8tDPFkvZajrZn5chWgF53k,2266
26
26
  ingestion/generic/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
27
27
  ingestion/generic/process.py,sha256=ZaVnZ_gx9faDUsuresI1A0oCegTa-dPQT7DBFMeZGyY,1777
28
- ingestion/generic/utils.py,sha256=_v3dKqlZK0S99_thSMD4ojkuFbBRWadBcS-RF-lTdJk,2862
28
+ ingestion/generic/utils.py,sha256=1MEIru7uq38IjUdL8lcHqDH0oTki9uWrz1f2e-pmRoU,2814
29
29
  ingestion/nebula/__init__.py,sha256=VauK-rup_N8ZXVohx3HYqHX_PE_WoPyMUhdv2R7al4o,45
30
30
  ingestion/nebula/constants.py,sha256=thKqSwemdaAwAmKvF4FEVI9l1Ph5ergsnMlx6nWte7E,357
31
31
  ingestion/nebula/manifest_assembler.py,sha256=kcRSy6pixHkuVEK9QSoM-i6ZdLWMSYXw39eKGHvam34,7995
@@ -60,6 +60,6 @@ ingestion/vcf_standardization/util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQe
60
60
  ingestion/vcf_standardization/util/af_helpers.py,sha256=dpTzoeIQVeBRt0ETF3a9rp5ojZqznHg4x_hCZ8OPcOg,1061
61
61
  ingestion/vcf_standardization/util/dp_helpers.py,sha256=Nq8oLOLObu4_pv16qwwgpALRlUoJVCULrd9cFOD-eoI,823
62
62
  ingestion/vcf_standardization/util/read_write.py,sha256=x3Pf6Dq8tmolblbCS5CrNmrcHS3FGfqBSFpFgvFGC4g,2526
63
- phc_ingestion-0.10.20.dist-info/WHEEL,sha256=B19PGBCYhWaz2p_UjAoRVh767nYQfk14Sn4TpIZ-nfU,87
64
- phc_ingestion-0.10.20.dist-info/METADATA,sha256=O4v14ntrknbOIU1iPTEoO8kQ8uXVNnNYotDo8YDkQis,678
65
- phc_ingestion-0.10.20.dist-info/RECORD,,
63
+ phc_ingestion-0.11.1.dist-info/WHEEL,sha256=B19PGBCYhWaz2p_UjAoRVh767nYQfk14Sn4TpIZ-nfU,87
64
+ phc_ingestion-0.11.1.dist-info/METADATA,sha256=ucEZCziomM9ANPMV8jqSBT5Huigd0UownHOnSKWqKdc,677
65
+ phc_ingestion-0.11.1.dist-info/RECORD,,