phc-ingestion 0.10.7__tar.gz → 0.10.8__tar.gz
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.
- {phc-ingestion-0.10.7 → phc-ingestion-0.10.8}/PKG-INFO +1 -1
- {phc-ingestion-0.10.7 → phc-ingestion-0.10.8}/ingestion/nebula/manifest_assembler.py +22 -6
- {phc-ingestion-0.10.7 → phc-ingestion-0.10.8}/pyproject.toml +1 -1
- {phc-ingestion-0.10.7 → phc-ingestion-0.10.8}/PYPI.md +0 -0
- {phc-ingestion-0.10.7 → phc-ingestion-0.10.8}/ingestion/__init__.py +0 -0
- {phc-ingestion-0.10.7 → phc-ingestion-0.10.8}/ingestion/caris/__init__.py +0 -0
- {phc-ingestion-0.10.7 → phc-ingestion-0.10.8}/ingestion/caris/process.py +0 -0
- {phc-ingestion-0.10.7 → phc-ingestion-0.10.8}/ingestion/caris/util/__init__.py +0 -0
- {phc-ingestion-0.10.7 → phc-ingestion-0.10.8}/ingestion/caris/util/cnv.py +0 -0
- {phc-ingestion-0.10.7 → phc-ingestion-0.10.8}/ingestion/caris/util/detect_genome_ref.py +0 -0
- {phc-ingestion-0.10.7 → phc-ingestion-0.10.8}/ingestion/caris/util/hla.py +0 -0
- {phc-ingestion-0.10.7 → phc-ingestion-0.10.8}/ingestion/caris/util/ihc.py +0 -0
- {phc-ingestion-0.10.7 → phc-ingestion-0.10.8}/ingestion/caris/util/interpretation.py +0 -0
- {phc-ingestion-0.10.7 → phc-ingestion-0.10.8}/ingestion/caris/util/json.py +0 -0
- {phc-ingestion-0.10.7 → phc-ingestion-0.10.8}/ingestion/caris/util/metadata.py +0 -0
- {phc-ingestion-0.10.7 → phc-ingestion-0.10.8}/ingestion/caris/util/specimen_details.py +0 -0
- {phc-ingestion-0.10.7 → phc-ingestion-0.10.8}/ingestion/caris/util/structural.py +0 -0
- {phc-ingestion-0.10.7 → phc-ingestion-0.10.8}/ingestion/caris/util/tests.py +0 -0
- {phc-ingestion-0.10.7 → phc-ingestion-0.10.8}/ingestion/caris/util/tmb.py +0 -0
- {phc-ingestion-0.10.7 → phc-ingestion-0.10.8}/ingestion/caris/util/tsv.py +0 -0
- {phc-ingestion-0.10.7 → phc-ingestion-0.10.8}/ingestion/caris/util/vcf.py +0 -0
- {phc-ingestion-0.10.7 → phc-ingestion-0.10.8}/ingestion/foundation/__init__.py +0 -0
- {phc-ingestion-0.10.7 → phc-ingestion-0.10.8}/ingestion/foundation/process.py +0 -0
- {phc-ingestion-0.10.7 → phc-ingestion-0.10.8}/ingestion/foundation/util/__init__.py +0 -0
- {phc-ingestion-0.10.7 → phc-ingestion-0.10.8}/ingestion/foundation/util/cnv.py +0 -0
- {phc-ingestion-0.10.7 → phc-ingestion-0.10.8}/ingestion/foundation/util/fnv.py +0 -0
- {phc-ingestion-0.10.7 → phc-ingestion-0.10.8}/ingestion/foundation/util/ga4gh.py +0 -0
- {phc-ingestion-0.10.7 → phc-ingestion-0.10.8}/ingestion/foundation/util/interpretation.py +0 -0
- {phc-ingestion-0.10.7 → phc-ingestion-0.10.8}/ingestion/foundation/util/vcf_etl.py +0 -0
- {phc-ingestion-0.10.7 → phc-ingestion-0.10.8}/ingestion/generic/__init__.py +0 -0
- {phc-ingestion-0.10.7 → phc-ingestion-0.10.8}/ingestion/generic/process.py +0 -0
- {phc-ingestion-0.10.7 → phc-ingestion-0.10.8}/ingestion/generic/utils.py +0 -0
- {phc-ingestion-0.10.7 → phc-ingestion-0.10.8}/ingestion/nebula/__init__.py +0 -0
- {phc-ingestion-0.10.7 → phc-ingestion-0.10.8}/ingestion/nebula/constants.py +0 -0
- {phc-ingestion-0.10.7 → phc-ingestion-0.10.8}/ingestion/nebula/process.py +0 -0
- {phc-ingestion-0.10.7 → phc-ingestion-0.10.8}/ingestion/nextgen/__init__.py +0 -0
- {phc-ingestion-0.10.7 → phc-ingestion-0.10.8}/ingestion/nextgen/process.py +0 -0
- {phc-ingestion-0.10.7 → phc-ingestion-0.10.8}/ingestion/nextgen/util/alteration_table.py +0 -0
- {phc-ingestion-0.10.7 → phc-ingestion-0.10.8}/ingestion/nextgen/util/interpretation.py +0 -0
- {phc-ingestion-0.10.7 → phc-ingestion-0.10.8}/ingestion/nextgen/util/manifest_helpers.py +0 -0
- {phc-ingestion-0.10.7 → phc-ingestion-0.10.8}/ingestion/nextgen/util/nextgen_specific_genes.py +0 -0
- {phc-ingestion-0.10.7 → phc-ingestion-0.10.8}/ingestion/nextgen/util/pre_filter_somatic_vcf.py +0 -0
- {phc-ingestion-0.10.7 → phc-ingestion-0.10.8}/ingestion/nextgen/util/process_cnv.py +0 -0
- {phc-ingestion-0.10.7 → phc-ingestion-0.10.8}/ingestion/nextgen/util/process_manifest.py +0 -0
- {phc-ingestion-0.10.7 → phc-ingestion-0.10.8}/ingestion/nextgen/util/process_structural.py +0 -0
- {phc-ingestion-0.10.7 → phc-ingestion-0.10.8}/ingestion/nextgen/util/process_vcf.py +0 -0
- {phc-ingestion-0.10.7 → phc-ingestion-0.10.8}/ingestion/nextgen/util/types.py +0 -0
- {phc-ingestion-0.10.7 → phc-ingestion-0.10.8}/ingestion/resources/GRCh37_map.csv.gz +0 -0
- {phc-ingestion-0.10.7 → phc-ingestion-0.10.8}/ingestion/resources/GRCh38_map.csv.gz +0 -0
- {phc-ingestion-0.10.7 → phc-ingestion-0.10.8}/ingestion/shared_util/__init__.py +0 -0
- {phc-ingestion-0.10.7 → phc-ingestion-0.10.8}/ingestion/shared_util/coords_to_genes.py +0 -0
- {phc-ingestion-0.10.7 → phc-ingestion-0.10.8}/ingestion/shared_util/ga4gh.py +0 -0
- {phc-ingestion-0.10.7 → phc-ingestion-0.10.8}/ingestion/shared_util/gene_to_coords.py +0 -0
- {phc-ingestion-0.10.7 → phc-ingestion-0.10.8}/ingestion/shared_util/lambda_client.py +0 -0
- {phc-ingestion-0.10.7 → phc-ingestion-0.10.8}/ingestion/shared_util/open_maybe_gzipped.py +0 -0
- {phc-ingestion-0.10.7 → phc-ingestion-0.10.8}/ingestion/shared_util/tar.py +0 -0
- {phc-ingestion-0.10.7 → phc-ingestion-0.10.8}/ingestion/shared_util/types.py +0 -0
- {phc-ingestion-0.10.7 → phc-ingestion-0.10.8}/ingestion/vcf_standardization/Variant.py +0 -0
- {phc-ingestion-0.10.7 → phc-ingestion-0.10.8}/ingestion/vcf_standardization/__init__.py +0 -0
- {phc-ingestion-0.10.7 → phc-ingestion-0.10.8}/ingestion/vcf_standardization/standardize.py +0 -0
- {phc-ingestion-0.10.7 → phc-ingestion-0.10.8}/ingestion/vcf_standardization/util/__init__.py +0 -0
- {phc-ingestion-0.10.7 → phc-ingestion-0.10.8}/ingestion/vcf_standardization/util/af_helpers.py +0 -0
- {phc-ingestion-0.10.7 → phc-ingestion-0.10.8}/ingestion/vcf_standardization/util/dp_helpers.py +0 -0
- {phc-ingestion-0.10.7 → phc-ingestion-0.10.8}/ingestion/vcf_standardization/util/read_write.py +0 -0
|
@@ -103,11 +103,22 @@ class ManifestAssembler:
|
|
|
103
103
|
identifiers = resource.get("identifier", [])
|
|
104
104
|
return identifiers[0].get("value", "") if identifiers else ""
|
|
105
105
|
|
|
106
|
-
def __extract_id_from_reference(self, reference: Reference) -> str:
|
|
107
|
-
|
|
106
|
+
def __extract_id_from_reference(self, reference: Reference | None) -> str:
|
|
107
|
+
if not reference:
|
|
108
|
+
return ""
|
|
109
|
+
|
|
110
|
+
ref_string = reference.get("reference")
|
|
111
|
+
if not ref_string:
|
|
112
|
+
return ""
|
|
113
|
+
|
|
108
114
|
parts = ref_string.split("/")
|
|
109
115
|
return parts[1] if len(parts) > 1 else parts[0]
|
|
110
116
|
|
|
117
|
+
def __extract_id_from_reference_list(self, references: list[Reference] | None) -> str:
|
|
118
|
+
if not references or len(references) == 0:
|
|
119
|
+
return ""
|
|
120
|
+
return self.__extract_id_from_reference(references[0])
|
|
121
|
+
|
|
111
122
|
def __extract_elation_mrn(self, patient: Patient) -> str:
|
|
112
123
|
identifier = next(
|
|
113
124
|
(
|
|
@@ -155,11 +166,16 @@ class ManifestAssembler:
|
|
|
155
166
|
"Organization", patient.get("managingOrganization")
|
|
156
167
|
)
|
|
157
168
|
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
)
|
|
169
|
+
# Handle generalPractitioner as a list
|
|
170
|
+
general_practitioner: Practitioner | None = None
|
|
171
|
+
general_practitioner_refs: list[Reference] = patient.get("generalPractitioner", [])
|
|
172
|
+
if general_practitioner_refs:
|
|
173
|
+
general_practitioner = self.__fetch_resource_by_type_and_reference(
|
|
174
|
+
"Practitioner",
|
|
175
|
+
{"reference": self.__extract_id_from_reference_list(general_practitioner_refs)},
|
|
176
|
+
)
|
|
161
177
|
|
|
162
|
-
patient_info = self.__parse_human_name(patient
|
|
178
|
+
patient_info = self.__parse_human_name(patient.get("name"))
|
|
163
179
|
practitioner_info = self.__parse_human_name(
|
|
164
180
|
general_practitioner.get("name") if general_practitioner else None
|
|
165
181
|
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{phc-ingestion-0.10.7 → phc-ingestion-0.10.8}/ingestion/nextgen/util/nextgen_specific_genes.py
RENAMED
|
File without changes
|
{phc-ingestion-0.10.7 → phc-ingestion-0.10.8}/ingestion/nextgen/util/pre_filter_somatic_vcf.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{phc-ingestion-0.10.7 → phc-ingestion-0.10.8}/ingestion/vcf_standardization/util/__init__.py
RENAMED
|
File without changes
|
{phc-ingestion-0.10.7 → phc-ingestion-0.10.8}/ingestion/vcf_standardization/util/af_helpers.py
RENAMED
|
File without changes
|
{phc-ingestion-0.10.7 → phc-ingestion-0.10.8}/ingestion/vcf_standardization/util/dp_helpers.py
RENAMED
|
File without changes
|
{phc-ingestion-0.10.7 → phc-ingestion-0.10.8}/ingestion/vcf_standardization/util/read_write.py
RENAMED
|
File without changes
|