RBCeq2 2.4.0__tar.gz → 2.4.1__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.
Files changed (56) hide show
  1. {rbceq2-2.4.0/src/rbceq2.egg-info → rbceq2-2.4.1}/PKG-INFO +6 -6
  2. {rbceq2-2.4.0 → rbceq2-2.4.1}/README.md +5 -5
  3. {rbceq2-2.4.0 → rbceq2-2.4.1}/pyproject.toml +1 -1
  4. {rbceq2-2.4.0 → rbceq2-2.4.1}/src/rbceq2/IO/record_data.py +4 -3
  5. rbceq2-2.4.1/src/rbceq2/core_logic/constants.py +4104 -0
  6. {rbceq2-2.4.0 → rbceq2-2.4.1}/src/rbceq2/main.py +1 -1
  7. rbceq2-2.4.1/src/rbceq2/resources/db.tsv +2008 -0
  8. rbceq2-2.4.1/src/rbceq2/resources/db_backup.tsv +2008 -0
  9. {rbceq2-2.4.0 → rbceq2-2.4.1/src/rbceq2.egg-info}/PKG-INFO +6 -6
  10. {rbceq2-2.4.0 → rbceq2-2.4.1}/src/rbceq2.egg-info/SOURCES.txt +1 -0
  11. {rbceq2-2.4.0 → rbceq2-2.4.1}/tests/test_data_processing.py +0 -44
  12. rbceq2-2.4.0/src/rbceq2/core_logic/constants.py +0 -828
  13. rbceq2-2.4.0/src/rbceq2/resources/db.tsv +0 -2008
  14. {rbceq2-2.4.0 → rbceq2-2.4.1}/LICENSE +0 -0
  15. {rbceq2-2.4.0 → rbceq2-2.4.1}/MANIFEST.in +0 -0
  16. {rbceq2-2.4.0 → rbceq2-2.4.1}/setup.cfg +0 -0
  17. {rbceq2-2.4.0 → rbceq2-2.4.1}/src/rbceq2/IO/PDF_reports.py +0 -0
  18. {rbceq2-2.4.0 → rbceq2-2.4.1}/src/rbceq2/IO/__init__.py +0 -0
  19. {rbceq2-2.4.0 → rbceq2-2.4.1}/src/rbceq2/IO/encoders.py +0 -0
  20. {rbceq2-2.4.0 → rbceq2-2.4.1}/src/rbceq2/IO/validation.py +0 -0
  21. {rbceq2-2.4.0 → rbceq2-2.4.1}/src/rbceq2/IO/vcf.py +0 -0
  22. {rbceq2-2.4.0 → rbceq2-2.4.1}/src/rbceq2/__init__.py +0 -0
  23. {rbceq2-2.4.0 → rbceq2-2.4.1}/src/rbceq2/core_logic/__init__.py +0 -0
  24. {rbceq2-2.4.0 → rbceq2-2.4.1}/src/rbceq2/core_logic/alleles.py +0 -0
  25. {rbceq2-2.4.0 → rbceq2-2.4.1}/src/rbceq2/core_logic/co_existing.py +0 -0
  26. {rbceq2-2.4.0 → rbceq2-2.4.1}/src/rbceq2/core_logic/data_procesing.py +0 -0
  27. {rbceq2-2.4.0 → rbceq2-2.4.1}/src/rbceq2/core_logic/large_variants.py +0 -0
  28. {rbceq2-2.4.0 → rbceq2-2.4.1}/src/rbceq2/core_logic/utils.py +0 -0
  29. {rbceq2-2.4.0 → rbceq2-2.4.1}/src/rbceq2/db/__init__.py +0 -0
  30. {rbceq2-2.4.0 → rbceq2-2.4.1}/src/rbceq2/db/db.py +0 -0
  31. {rbceq2-2.4.0 → rbceq2-2.4.1}/src/rbceq2/filters/__init__.py +0 -0
  32. {rbceq2-2.4.0 → rbceq2-2.4.1}/src/rbceq2/filters/geno.py +0 -0
  33. {rbceq2-2.4.0 → rbceq2-2.4.1}/src/rbceq2/filters/knops.py +0 -0
  34. {rbceq2-2.4.0 → rbceq2-2.4.1}/src/rbceq2/filters/phased.py +0 -0
  35. {rbceq2-2.4.0 → rbceq2-2.4.1}/src/rbceq2/filters/shared_filter_functionality.py +0 -0
  36. {rbceq2-2.4.0 → rbceq2-2.4.1}/src/rbceq2/phenotype/__init__.py +0 -0
  37. {rbceq2-2.4.0 → rbceq2-2.4.1}/src/rbceq2/phenotype/antigens.py +0 -0
  38. {rbceq2-2.4.0 → rbceq2-2.4.1}/src/rbceq2/phenotype/choose_pheno.py +0 -0
  39. {rbceq2-2.4.0 → rbceq2-2.4.1}/src/rbceq2.egg-info/dependency_links.txt +0 -0
  40. {rbceq2-2.4.0 → rbceq2-2.4.1}/src/rbceq2.egg-info/entry_points.txt +0 -0
  41. {rbceq2-2.4.0 → rbceq2-2.4.1}/src/rbceq2.egg-info/requires.txt +0 -0
  42. {rbceq2-2.4.0 → rbceq2-2.4.1}/src/rbceq2.egg-info/top_level.txt +0 -0
  43. {rbceq2-2.4.0 → rbceq2-2.4.1}/tests/test_IO.py +0 -0
  44. {rbceq2-2.4.0 → rbceq2-2.4.1}/tests/test_VCF.py +0 -0
  45. {rbceq2-2.4.0 → rbceq2-2.4.1}/tests/test_alleles.py +0 -0
  46. {rbceq2-2.4.0 → rbceq2-2.4.1}/tests/test_ants.py +0 -0
  47. {rbceq2-2.4.0 → rbceq2-2.4.1}/tests/test_choose_pheno.py +0 -0
  48. {rbceq2-2.4.0 → rbceq2-2.4.1}/tests/test_co_filters.py +0 -0
  49. {rbceq2-2.4.0 → rbceq2-2.4.1}/tests/test_coexisting.py +0 -0
  50. {rbceq2-2.4.0 → rbceq2-2.4.1}/tests/test_db.py +0 -0
  51. {rbceq2-2.4.0 → rbceq2-2.4.1}/tests/test_filters_phase.py +0 -0
  52. {rbceq2-2.4.0 → rbceq2-2.4.1}/tests/test_geno_filters.py +0 -0
  53. {rbceq2-2.4.0 → rbceq2-2.4.1}/tests/test_large_variants.py +0 -0
  54. {rbceq2-2.4.0 → rbceq2-2.4.1}/tests/test_main.py +0 -0
  55. {rbceq2-2.4.0 → rbceq2-2.4.1}/tests/test_pdf.py +0 -0
  56. {rbceq2-2.4.0 → rbceq2-2.4.1}/tests/test_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rbceq2
3
- Version: 2.4.0
3
+ Version: 2.4.1
4
4
  Summary: Call ISBT alleles from VCF/s
5
5
  Author-email: Liam McIntyre <limcintyre@redcrossblood.org.au>
6
6
  License: Copyright 2025 Australian Red Cross Lifeblood
@@ -46,17 +46,16 @@ Dynamic: license-file
46
46
  > [!WARNING]
47
47
  > NOT FOR CLINICAL USE
48
48
 
49
- ## Version v2.4.0
49
+ ## Version v2.4.1
50
50
 
51
51
  RBCeq2 reads in genomic variant data in the form of variant call files (VCF) and outputs blood group (BG) genotype and phenotype inference.
52
52
 
53
- At the highest level RBCeq2 finds all possible alleles, then filters out those that fail certain logic checks. This allows for an auditable trail of why it has reached a certain result. Every effort has been made to be explicit both in encoding alleles in our database and while writing code. This results in verbose but unambiguous results. Last, some liberties have been taken to standardise syntax and nomenclature across blood groups.
53
+ At the highest level RBCeq2 finds all possible alleles, then filters out those that fail certain logic checks. This allows for an auditable trail of why it has reached a certain result. Every effort has been made to be explicit both in encoding alleles in our database and while writing code. This results in verbose but unambiguous results. Last, some liberties have been taken to standardise syntax and nomenclature across blood groups.
54
54
 
55
- The initial release of RBCeq2 was focused on perfecting the calling of International Society for Blood Transfusion (ISBT) defined BG alleles from simple variants; single nucleotide variants (SNVs) and small insertions and deletions (indels). Further, it supported the use of long read derived VCFs (i.e. addition of large indels and phased data). However, these features were not as polished. This release (v2.3.1) includes major improvements to the phasing logic – see section 7 of the docs and the change log for details.
55
+ The initial release of RBCeq2 was focused on perfecting the calling of International Society for Blood Transfusion (ISBT) defined BG alleles from simple variants; single nucleotide variants (SNVs) and small insertions and deletions (indels). v2.3.0 focussed on phasing. V2.4.0 (current) focuses on large variants and the RH region, using long read sequencing data.
56
56
 
57
57
  ## Bugs
58
-
59
- This software is extensively tested and accurately reports genotypes/phenotypes based on our inhouse definitions of the ‘correct’ answer, however, there are some examples where the ‘correct’ answer is subjective. The docs are detailed – if you find what you think is a bug in the results from RBCeq2 please take the time to understand if it inline with what we intended or not (use --debug and look to see what happened). We will endeavor to fix any black and white bugs ASAP. Most of these will be rare variants that are encoded wrong in our database. We value any and all feedback and feature requests.
58
+ This software is extensively tested and accurately reports genotypes/phenotypes based on our inhouse definitions of the ‘correct’ answer, however, there are some examples where the ‘correct’ answer is subjective. The docs are detailed – if you find what you think is a bug in the results from RBCeq2 please take the time to understand if it inline with what we intended or not (use --debug and look to see what happened).
60
59
 
61
60
  ## Documentation
62
61
 
@@ -90,4 +89,5 @@ options:
90
89
  --validate Enable VCF validation. Doubles run time. Might help you identify input issues (default: False)
91
90
  --PDFs Generate a per sample PDF report (default: False)
92
91
  --HPAs Generate results for HPA (default: False)
92
+ --RH Generate results for RHD and RHCE. WARNING! Long read only! (default: False)
93
93
  ```
@@ -12,17 +12,16 @@
12
12
  > [!WARNING]
13
13
  > NOT FOR CLINICAL USE
14
14
 
15
- ## Version v2.4.0
15
+ ## Version v2.4.1
16
16
 
17
17
  RBCeq2 reads in genomic variant data in the form of variant call files (VCF) and outputs blood group (BG) genotype and phenotype inference.
18
18
 
19
- At the highest level RBCeq2 finds all possible alleles, then filters out those that fail certain logic checks. This allows for an auditable trail of why it has reached a certain result. Every effort has been made to be explicit both in encoding alleles in our database and while writing code. This results in verbose but unambiguous results. Last, some liberties have been taken to standardise syntax and nomenclature across blood groups.
19
+ At the highest level RBCeq2 finds all possible alleles, then filters out those that fail certain logic checks. This allows for an auditable trail of why it has reached a certain result. Every effort has been made to be explicit both in encoding alleles in our database and while writing code. This results in verbose but unambiguous results. Last, some liberties have been taken to standardise syntax and nomenclature across blood groups.
20
20
 
21
- The initial release of RBCeq2 was focused on perfecting the calling of International Society for Blood Transfusion (ISBT) defined BG alleles from simple variants; single nucleotide variants (SNVs) and small insertions and deletions (indels). Further, it supported the use of long read derived VCFs (i.e. addition of large indels and phased data). However, these features were not as polished. This release (v2.3.1) includes major improvements to the phasing logic – see section 7 of the docs and the change log for details.
21
+ The initial release of RBCeq2 was focused on perfecting the calling of International Society for Blood Transfusion (ISBT) defined BG alleles from simple variants; single nucleotide variants (SNVs) and small insertions and deletions (indels). v2.3.0 focussed on phasing. V2.4.0 (current) focuses on large variants and the RH region, using long read sequencing data.
22
22
 
23
23
  ## Bugs
24
-
25
- This software is extensively tested and accurately reports genotypes/phenotypes based on our inhouse definitions of the ‘correct’ answer, however, there are some examples where the ‘correct’ answer is subjective. The docs are detailed – if you find what you think is a bug in the results from RBCeq2 please take the time to understand if it inline with what we intended or not (use --debug and look to see what happened). We will endeavor to fix any black and white bugs ASAP. Most of these will be rare variants that are encoded wrong in our database. We value any and all feedback and feature requests.
24
+ This software is extensively tested and accurately reports genotypes/phenotypes based on our inhouse definitions of the ‘correct’ answer, however, there are some examples where the ‘correct’ answer is subjective. The docs are detailed – if you find what you think is a bug in the results from RBCeq2 please take the time to understand if it inline with what we intended or not (use --debug and look to see what happened).
26
25
 
27
26
  ## Documentation
28
27
 
@@ -56,4 +55,5 @@ options:
56
55
  --validate Enable VCF validation. Doubles run time. Might help you identify input issues (default: False)
57
56
  --PDFs Generate a per sample PDF report (default: False)
58
57
  --HPAs Generate results for HPA (default: False)
58
+ --RH Generate results for RHD and RHCE. WARNING! Long read only! (default: False)
59
59
  ```
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
6
6
 
7
7
  [project]
8
8
  name = "rbceq2"
9
- version = "2.4.0"
9
+ version = "2.4.1"
10
10
  description = "Call ISBT alleles from VCF/s"
11
11
  readme = "README.md"
12
12
  license = { file = "LICENSE" }
@@ -7,7 +7,7 @@ import pandas as pd
7
7
  from loguru import logger
8
8
  import argparse
9
9
 
10
- from rbceq2.core_logic.constants import DB_VERSION, VERSION, AlleleState
10
+ from rbceq2.core_logic.constants import DB_VERSION, VERSION, AlleleState, GENOMIC_TO_TRANSCRIPT_GRCh37, GENOMIC_TO_TRANSCRIPT_GRCh38
11
11
  from rbceq2.IO.validation import validate_vcf
12
12
 
13
13
  from rbceq2.core_logic.utils import collapse_variant
@@ -53,7 +53,7 @@ def configure_logging(args: argparse.Namespace) -> str:
53
53
  return UUID
54
54
 
55
55
 
56
- def record_filtered_data(results: tuple[Any]) -> None:
56
+ def record_filtered_data(results: tuple[Any], ref: str) -> None:
57
57
  """Record filtered data by logging debug information for each blood group.
58
58
 
59
59
  This function unpacks the results tuple into sample identifier, numeric and
@@ -73,8 +73,9 @@ def record_filtered_data(results: tuple[Any]) -> None:
73
73
  """
74
74
 
75
75
  def format_vars(pool):
76
+ transcripts = GENOMIC_TO_TRANSCRIPT_GRCh37 if ref == 'GRCh37' else GENOMIC_TO_TRANSCRIPT_GRCh38
76
77
  return "\n" + "\n".join(
77
- [" : ".join([collapse_variant(k), v]) for k, v in pool.items()]
78
+ [" : ".join([collapse_variant(k), transcripts.get(k, '(None)'), v]) for k, v in pool.items()]
78
79
  )
79
80
 
80
81
  sample, genos, numeric_phenos, alphanumeric_phenos, res, var_map = results