phc-ingestion 1.0.4__py3-none-any.whl → 1.0.5__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.
ingestion/broad/utils.py CHANGED
@@ -64,6 +64,7 @@ def check_manifest(manifest_file_path: str, case_id, log: Logger):
64
64
  raise e
65
65
 
66
66
  # Add duplicate fields from supplied ones to fit formatting
67
+ manifest["mrn"] = manifest["mrn"].strip()
67
68
  manifest["patientInfo"]["identifiers"] = [
68
69
  {
69
70
  "codingCode": "MR",
@@ -64,6 +64,7 @@ def check_manifest(manifest_file_path: str, case_id, log: Logger):
64
64
  raise e
65
65
 
66
66
  # Add duplicate fields from supplied ones to fit formatting
67
+ manifest["mrn"] = manifest["mrn"].strip()
67
68
  manifest["patientInfo"]["identifiers"] = [
68
69
  {
69
70
  "codingCode": "MR",
@@ -131,7 +131,7 @@ class ManifestAssembler:
131
131
  if not identifier:
132
132
  return ""
133
133
 
134
- return identifier.get("value", "")
134
+ return identifier.get("value", "").strip()
135
135
 
136
136
  def __parse_human_name(self, human_name: list[HumanName] | None):
137
137
  if not human_name:
@@ -87,7 +87,7 @@ def extract_patient_data(patient_info_lines: list[str]):
87
87
 
88
88
  if "mrn" not in patient_data and "MRN #" in line:
89
89
  mrnArray = line.split(" ")
90
- mrn = search_and_grab(mrnArray, "MRN", 2)
90
+ mrn = search_and_grab(mrnArray, "MRN", 2).strip()
91
91
  patient_data["mrn"] = mrn
92
92
  patient_data["patientInfo"]["identifiers"] = [
93
93
  {
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: phc-ingestion
3
- Version: 1.0.4
3
+ Version: 1.0.5
4
4
  Summary: Functions for LifeOmic PHC genomic ingestions
5
5
  License: MIT
6
6
  Author-email: LifeOmic Development <development@lifeomic.com>
@@ -1,7 +1,7 @@
1
1
  ingestion/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  ingestion/broad/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  ingestion/broad/process.py,sha256=IrtnANQlbPpI7aza-N_v8qMyxBOX17jq904wDNq7Nng,1803
4
- ingestion/broad/utils.py,sha256=YHzbmB0tP-aQjvY9vRSn8iOhailleYwvctDbB0IEKb8,2853
4
+ ingestion/broad/utils.py,sha256=QghE7y5Tz4m-sB1trKmMOMEHdf53CK9zVIeAOAu9QUU,2899
5
5
  ingestion/caris/__init__.py,sha256=sFHl6qZWaacTbCFyikkIkuC-z459m5XQ7kwwoCw7HK8,61
6
6
  ingestion/caris/process.py,sha256=7GaSTg9LjqSn7iTNbY3FJIPFvVjkd6wgXiVC00pn-7A,1411
7
7
  ingestion/caris/util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -28,10 +28,10 @@ ingestion/foundation/util/interpretation.py,sha256=LVVUmMyD6Un1rIKXqiyQDUC6oIJUd
28
28
  ingestion/foundation/util/vcf_etl.py,sha256=GXV5JXswwdyHEEdPsM3Qq8tDPFkvZajrZn5chWgF53k,2266
29
29
  ingestion/generic/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
30
30
  ingestion/generic/process.py,sha256=ZaVnZ_gx9faDUsuresI1A0oCegTa-dPQT7DBFMeZGyY,1777
31
- ingestion/generic/utils.py,sha256=YHzbmB0tP-aQjvY9vRSn8iOhailleYwvctDbB0IEKb8,2853
31
+ ingestion/generic/utils.py,sha256=QghE7y5Tz4m-sB1trKmMOMEHdf53CK9zVIeAOAu9QUU,2899
32
32
  ingestion/nebula/__init__.py,sha256=VauK-rup_N8ZXVohx3HYqHX_PE_WoPyMUhdv2R7al4o,45
33
33
  ingestion/nebula/constants.py,sha256=thKqSwemdaAwAmKvF4FEVI9l1Ph5ergsnMlx6nWte7E,357
34
- ingestion/nebula/manifest_assembler.py,sha256=kcRSy6pixHkuVEK9QSoM-i6ZdLWMSYXw39eKGHvam34,7995
34
+ ingestion/nebula/manifest_assembler.py,sha256=ZqppEe4n8tgh3118Jdq4rmaz5TCejNAbUATAZWx2QVM,8003
35
35
  ingestion/nebula/process.py,sha256=N9OuipynGV_XgEL3nO5I_-di1tk9szOy8LqsyNTw0E0,2323
36
36
  ingestion/nextgen/__init__.py,sha256=7LQ-h_Bvc5P1QcHMdzsqi1Qm4fTJn04-ozar2ty9wSc,59
37
37
  ingestion/nextgen/process.py,sha256=5Z0RfclwTAYZruGDiLPutjPCYFh1DJpoWY9dnttghT4,3993
@@ -41,7 +41,7 @@ ingestion/nextgen/util/manifest_helpers.py,sha256=Eo89CBRDrMGLIq2OBkKS9lH5yL4pgM
41
41
  ingestion/nextgen/util/nextgen_specific_genes.py,sha256=1jFcqvtYAlJ7eBwOBm1UC2TzAbjHjdlvPBUzxr1G8dY,1206
42
42
  ingestion/nextgen/util/pre_filter_somatic_vcf.py,sha256=mIaUihmGLbS38D4Gy_Qtf1lFAfW0A-LgAgQmsrEiI-M,3529
43
43
  ingestion/nextgen/util/process_cnv.py,sha256=MIirc8e0k6lsaTZkRM3U3L3IvbrcHmKQ4xlIu585514,2430
44
- ingestion/nextgen/util/process_manifest.py,sha256=RsHzDGL1OBea2raoEHACo8owRodIFpX3xVE-aFOoyrg,8428
44
+ ingestion/nextgen/util/process_manifest.py,sha256=feyJXt045e8NVwii0vHyZ7RdSfARs9Q205dgMz4d9DM,8436
45
45
  ingestion/nextgen/util/process_structural.py,sha256=FKjkK7BkIlocnLs8rFCjrMC39FCQnD0nQCeWvi7cRoA,7539
46
46
  ingestion/nextgen/util/process_vcf.py,sha256=ZZURSMnZhHDpFahzijZ4MvCfSWTPdIktzmnCKVVUbGs,7768
47
47
  ingestion/nextgen/util/types.py,sha256=SSzt5gv-kss1PR45eQUelypWrGI-dAfQMO3GSD-T-Wg,22
@@ -63,6 +63,6 @@ ingestion/vcf_standardization/util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQe
63
63
  ingestion/vcf_standardization/util/af_helpers.py,sha256=dpTzoeIQVeBRt0ETF3a9rp5ojZqznHg4x_hCZ8OPcOg,1061
64
64
  ingestion/vcf_standardization/util/dp_helpers.py,sha256=Nq8oLOLObu4_pv16qwwgpALRlUoJVCULrd9cFOD-eoI,823
65
65
  ingestion/vcf_standardization/util/read_write.py,sha256=x3Pf6Dq8tmolblbCS5CrNmrcHS3FGfqBSFpFgvFGC4g,2526
66
- phc_ingestion-1.0.4.dist-info/WHEEL,sha256=B19PGBCYhWaz2p_UjAoRVh767nYQfk14Sn4TpIZ-nfU,87
67
- phc_ingestion-1.0.4.dist-info/METADATA,sha256=_pBhlXnkSblAR6gqgXmPMq7FjvAZY_1y55rfdpB9rVQ,676
68
- phc_ingestion-1.0.4.dist-info/RECORD,,
66
+ phc_ingestion-1.0.5.dist-info/WHEEL,sha256=B19PGBCYhWaz2p_UjAoRVh767nYQfk14Sn4TpIZ-nfU,87
67
+ phc_ingestion-1.0.5.dist-info/METADATA,sha256=lnKLnHLkhAEChPtanrK1bkL4iRXOxGkvZdFvf0QgdUQ,676
68
+ phc_ingestion-1.0.5.dist-info/RECORD,,