phc-ingestion 0.8.40__py3-none-any.whl → 0.8.42__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.
@@ -92,7 +92,7 @@ def get_plasma_tumor_fraction(genes) -> Optional[str]:
92
92
  ptf_val = ptf_entry.get("Alterations", {}).get("Alteration", {}).get("Name", "")
93
93
  try:
94
94
  # See https://github.com/lifeomic/phc-ingestion/pull/129
95
- float_val = float(ptf_val)
95
+ float_val = float(ptf_val.strip("%"))
96
96
  if float_val > 0:
97
97
  return "Elevated"
98
98
  elif float_val == 0:
@@ -19,8 +19,12 @@ def process(
19
19
  vcf_final = base_vcf_file.replace(".vcf", ".modified.nrm.filtered.vcf")
20
20
  if not vcf_final.endswith(".gz"):
21
21
  vcf_final = vcf_final + ".gz"
22
+ # All generic VCF ingestions are germline, so ensure the
23
+ # sample name is prefixed with "germline_". This matches
24
+ # the downstream logic in genomic-manifest
25
+ sample_name = f"germline_{case_id}"
22
26
  vcf_line_count = standardize_vcf(
23
- vcf_file, vcf_out, out_path, case_id, log, compression=True
27
+ vcf_file, vcf_out, out_path, sample_name, log, compression=True
24
28
  )
25
29
 
26
30
  # Add to manifest
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: phc-ingestion
3
- Version: 0.8.40
3
+ Version: 0.8.42
4
4
  Summary: Functions for LifeOmic PHC genomic ingestions
5
5
  License: MIT
6
6
  Author-email: LifeOmic Development <development@lifeomic.com>
@@ -22,11 +22,11 @@ ingestion/foundation/process.py,sha256=T8YTvXRiThqE1LTERhrzvvD69mP4qJ7soJ1ZIbu8Y
22
22
  ingestion/foundation/util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
23
23
  ingestion/foundation/util/cnv.py,sha256=YSKCaOBhjZDNXth_GxC-50crDURpTNCMefoHo0uO7lQ,4215
24
24
  ingestion/foundation/util/fnv.py,sha256=-VstGsBKXM0duC-IpwUkektoTZ9yQUR0IQcDb1HibY0,5937
25
- ingestion/foundation/util/ga4gh.py,sha256=UBX_9AsmXfnrd3PgIlqZJoKPqvVfDougIAOOdqDa8DM,11123
25
+ ingestion/foundation/util/ga4gh.py,sha256=dn7uoQdnKHfIVCSHVEyPpR0jc1uRp1YB4P_9tLMOxMs,11134
26
26
  ingestion/foundation/util/interpretation.py,sha256=LVVUmMyD6Un1rIKXqiyQDUC6oIJUd8cU3I9YHD5fsXg,405
27
27
  ingestion/foundation/util/vcf_etl.py,sha256=ZBrX1XGRz-ymLUEiVcjjqmPZPb-AfD9On8UkZJDa1Dk,2133
28
28
  ingestion/generic/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
29
- ingestion/generic/process.py,sha256=WJHV_-SKhrDZ3JS3fm9DVMoW3Zs2t50GiraSV3vlLHE,1548
29
+ ingestion/generic/process.py,sha256=ZaVnZ_gx9faDUsuresI1A0oCegTa-dPQT7DBFMeZGyY,1777
30
30
  ingestion/generic/utils.py,sha256=1MEIru7uq38IjUdL8lcHqDH0oTki9uWrz1f2e-pmRoU,2814
31
31
  ingestion/nextgen/__init__.py,sha256=7LQ-h_Bvc5P1QcHMdzsqi1Qm4fTJn04-ozar2ty9wSc,59
32
32
  ingestion/nextgen/process.py,sha256=5Z0RfclwTAYZruGDiLPutjPCYFh1DJpoWY9dnttghT4,3993
@@ -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.8.40.dist-info/WHEEL,sha256=B19PGBCYhWaz2p_UjAoRVh767nYQfk14Sn4TpIZ-nfU,87
58
- phc_ingestion-0.8.40.dist-info/METADATA,sha256=5zLM3NEBjrPzceSjLU85NXFxQL1S3GdyLpOitDNIdLI,573
59
- phc_ingestion-0.8.40.dist-info/RECORD,,
57
+ phc_ingestion-0.8.42.dist-info/WHEEL,sha256=B19PGBCYhWaz2p_UjAoRVh767nYQfk14Sn4TpIZ-nfU,87
58
+ phc_ingestion-0.8.42.dist-info/METADATA,sha256=LB_E096gDykQT0yFc3_AP28VNff1Zi91Ltj971FZ8c0,573
59
+ phc_ingestion-0.8.42.dist-info/RECORD,,