RBCeq2 2.4.0__tar.gz → 2.4.3__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 (57) hide show
  1. {rbceq2-2.4.0/src/rbceq2.egg-info → rbceq2-2.4.3}/PKG-INFO +20 -10
  2. {rbceq2-2.4.0 → rbceq2-2.4.3}/README.md +19 -9
  3. {rbceq2-2.4.0 → rbceq2-2.4.3}/pyproject.toml +1 -1
  4. rbceq2-2.4.3/src/rbceq2/IO/PDF_reports.py +661 -0
  5. rbceq2-2.4.3/src/rbceq2/IO/encoders.py +2153 -0
  6. {rbceq2-2.4.0 → rbceq2-2.4.3}/src/rbceq2/IO/record_data.py +4 -3
  7. {rbceq2-2.4.0 → rbceq2-2.4.3}/src/rbceq2/IO/vcf.py +1 -27
  8. rbceq2-2.4.3/src/rbceq2/core_logic/constants.py +4106 -0
  9. {rbceq2-2.4.0 → rbceq2-2.4.3}/src/rbceq2/core_logic/large_variants.py +160 -29
  10. {rbceq2-2.4.0 → rbceq2-2.4.3}/src/rbceq2/db/db.py +5 -0
  11. {rbceq2-2.4.0 → rbceq2-2.4.3}/src/rbceq2/filters/phased.py +4 -1
  12. {rbceq2-2.4.0 → rbceq2-2.4.3}/src/rbceq2/main.py +13 -7
  13. {rbceq2-2.4.0 → rbceq2-2.4.3}/src/rbceq2/phenotype/antigens.py +1 -1
  14. {rbceq2-2.4.0 → rbceq2-2.4.3}/src/rbceq2/phenotype/choose_pheno.py +2 -2
  15. rbceq2-2.4.3/src/rbceq2/resources/db.tsv +2051 -0
  16. {rbceq2-2.4.0 → rbceq2-2.4.3/src/rbceq2.egg-info}/PKG-INFO +20 -10
  17. {rbceq2-2.4.0 → rbceq2-2.4.3}/tests/test_data_processing.py +0 -44
  18. rbceq2-2.4.0/src/rbceq2/IO/PDF_reports.py +0 -558
  19. rbceq2-2.4.0/src/rbceq2/IO/encoders.py +0 -237
  20. rbceq2-2.4.0/src/rbceq2/core_logic/constants.py +0 -828
  21. rbceq2-2.4.0/src/rbceq2/resources/db.tsv +0 -2008
  22. {rbceq2-2.4.0 → rbceq2-2.4.3}/LICENSE +0 -0
  23. {rbceq2-2.4.0 → rbceq2-2.4.3}/MANIFEST.in +0 -0
  24. {rbceq2-2.4.0 → rbceq2-2.4.3}/setup.cfg +0 -0
  25. {rbceq2-2.4.0 → rbceq2-2.4.3}/src/rbceq2/IO/__init__.py +0 -0
  26. {rbceq2-2.4.0 → rbceq2-2.4.3}/src/rbceq2/IO/validation.py +0 -0
  27. {rbceq2-2.4.0 → rbceq2-2.4.3}/src/rbceq2/__init__.py +0 -0
  28. {rbceq2-2.4.0 → rbceq2-2.4.3}/src/rbceq2/core_logic/__init__.py +0 -0
  29. {rbceq2-2.4.0 → rbceq2-2.4.3}/src/rbceq2/core_logic/alleles.py +0 -0
  30. {rbceq2-2.4.0 → rbceq2-2.4.3}/src/rbceq2/core_logic/co_existing.py +0 -0
  31. {rbceq2-2.4.0 → rbceq2-2.4.3}/src/rbceq2/core_logic/data_procesing.py +0 -0
  32. {rbceq2-2.4.0 → rbceq2-2.4.3}/src/rbceq2/core_logic/utils.py +0 -0
  33. {rbceq2-2.4.0 → rbceq2-2.4.3}/src/rbceq2/db/__init__.py +0 -0
  34. {rbceq2-2.4.0 → rbceq2-2.4.3}/src/rbceq2/filters/__init__.py +0 -0
  35. {rbceq2-2.4.0 → rbceq2-2.4.3}/src/rbceq2/filters/geno.py +0 -0
  36. {rbceq2-2.4.0 → rbceq2-2.4.3}/src/rbceq2/filters/knops.py +0 -0
  37. {rbceq2-2.4.0 → rbceq2-2.4.3}/src/rbceq2/filters/shared_filter_functionality.py +0 -0
  38. {rbceq2-2.4.0 → rbceq2-2.4.3}/src/rbceq2/phenotype/__init__.py +0 -0
  39. {rbceq2-2.4.0 → rbceq2-2.4.3}/src/rbceq2.egg-info/SOURCES.txt +0 -0
  40. {rbceq2-2.4.0 → rbceq2-2.4.3}/src/rbceq2.egg-info/dependency_links.txt +0 -0
  41. {rbceq2-2.4.0 → rbceq2-2.4.3}/src/rbceq2.egg-info/entry_points.txt +0 -0
  42. {rbceq2-2.4.0 → rbceq2-2.4.3}/src/rbceq2.egg-info/requires.txt +0 -0
  43. {rbceq2-2.4.0 → rbceq2-2.4.3}/src/rbceq2.egg-info/top_level.txt +0 -0
  44. {rbceq2-2.4.0 → rbceq2-2.4.3}/tests/test_IO.py +0 -0
  45. {rbceq2-2.4.0 → rbceq2-2.4.3}/tests/test_VCF.py +0 -0
  46. {rbceq2-2.4.0 → rbceq2-2.4.3}/tests/test_alleles.py +0 -0
  47. {rbceq2-2.4.0 → rbceq2-2.4.3}/tests/test_ants.py +0 -0
  48. {rbceq2-2.4.0 → rbceq2-2.4.3}/tests/test_choose_pheno.py +0 -0
  49. {rbceq2-2.4.0 → rbceq2-2.4.3}/tests/test_co_filters.py +0 -0
  50. {rbceq2-2.4.0 → rbceq2-2.4.3}/tests/test_coexisting.py +0 -0
  51. {rbceq2-2.4.0 → rbceq2-2.4.3}/tests/test_db.py +0 -0
  52. {rbceq2-2.4.0 → rbceq2-2.4.3}/tests/test_filters_phase.py +0 -0
  53. {rbceq2-2.4.0 → rbceq2-2.4.3}/tests/test_geno_filters.py +0 -0
  54. {rbceq2-2.4.0 → rbceq2-2.4.3}/tests/test_large_variants.py +0 -0
  55. {rbceq2-2.4.0 → rbceq2-2.4.3}/tests/test_main.py +0 -0
  56. {rbceq2-2.4.0 → rbceq2-2.4.3}/tests/test_pdf.py +0 -0
  57. {rbceq2-2.4.0 → rbceq2-2.4.3}/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.3
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,21 +46,29 @@ Dynamic: license-file
46
46
  > [!WARNING]
47
47
  > NOT FOR CLINICAL USE
48
48
 
49
- ## Version v2.4.0
49
+ ## Version v2.4.3
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 (use --debug to see this in detail). 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.* (current) focuses on large variants and the RH region, using long read sequencing data.
56
+
57
+ ## Database v2.5.0
58
+
59
+ Our database is a TSV (db.tsv). It is a mirror of the official ISBT database. We will use the ISBT API directly once their databse is finished and polished. At the time of writing their antigen states and modifiers are not finished. There are also a few intentional differences, the main one being adjancent SNVs being merged into a single variant in the official ISBT database.
56
60
 
57
61
  ## Bugs
58
62
 
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.
63
+ 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). The RH region is the most likely to produce eroneous allele calls. Please work with us by raising issue here on git.
64
+
65
+ ## QC
66
+
67
+ RBCeq2 does not QC your data. You can choose to use all variants in the VCF or just those that have a PASS in the filter column.
60
68
 
61
69
  ## Documentation
62
70
 
63
- Documentation can be downloaded from the release page, you will need to be signed in to github to access it.
71
+ Documentation in the form of a PDF can be downloaded from the release page, you will need to be signed in to github to access it. We will convert this into a website at some point.
64
72
 
65
73
  ## How To
66
74
 
@@ -76,18 +84,20 @@ usage: rbceq2 --vcf example_multi_sample.vcf.gz --out example --reference_genome
76
84
  options:
77
85
  -h, --help show this help message and exit
78
86
  -v, --version Show programs version number and exit.
79
- --vcf VCF Path to VCF file/s. Give a folder if you want to pass multiple separate files (file names must end in .vcf or .vcf.gz), or alternatively give a file if using a multi-sample VCF. (default: None)
87
+ --vcf VCF Path to VCF file/s. Give a folder if you want to pass multiple separate files (file names must end in .vcf or .vcf.gz), or alternatively give a file if using a
88
+ multi-sample VCF. (default: None)
80
89
  --out OUT Prefix for output files (default: None)
81
- --depth DEPTH Minimum number of reads for a variant (default: 10)
82
- --quality QUALITY Minimum average genotype quality for a variant (default: 10)
90
+ --no_filter Use all variants, not just those where FILTER = PASS in the VCF (default: False)
83
91
  --processes PROCESSES
84
92
  Number of processes. I.e., how many CPUs are available? ~1GB RAM required per process (default: 1)
85
93
  --reference_genome {GRCh37,GRCh38}
86
94
  GRCh37/8 (default: None)
87
95
  --phased Use phase information (default: False)
88
- --microarray Input is from a microarray. (default: False)
89
96
  --debug Enable debug logging. If not set, logging will be at info level. (default: False)
90
97
  --validate Enable VCF validation. Doubles run time. Might help you identify input issues (default: False)
91
98
  --PDFs Generate a per sample PDF report (default: False)
92
99
  --HPAs Generate results for HPA (default: False)
100
+ --min_size MIN_SIZE Minimum size indel/SV to apply fuzzy matching to (default: 10)
101
+ --RH Generate results for RHD and RHCE. WARNING! Long read only! (default: False)
102
+
93
103
  ```
@@ -12,21 +12,29 @@
12
12
  > [!WARNING]
13
13
  > NOT FOR CLINICAL USE
14
14
 
15
- ## Version v2.4.0
15
+ ## Version v2.4.3
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 (use --debug to see this in detail). 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.* (current) focuses on large variants and the RH region, using long read sequencing data.
22
+
23
+ ## Database v2.5.0
24
+
25
+ Our database is a TSV (db.tsv). It is a mirror of the official ISBT database. We will use the ISBT API directly once their databse is finished and polished. At the time of writing their antigen states and modifiers are not finished. There are also a few intentional differences, the main one being adjancent SNVs being merged into a single variant in the official ISBT database.
22
26
 
23
27
  ## Bugs
24
28
 
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.
29
+ 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). The RH region is the most likely to produce eroneous allele calls. Please work with us by raising issue here on git.
30
+
31
+ ## QC
32
+
33
+ RBCeq2 does not QC your data. You can choose to use all variants in the VCF or just those that have a PASS in the filter column.
26
34
 
27
35
  ## Documentation
28
36
 
29
- Documentation can be downloaded from the release page, you will need to be signed in to github to access it.
37
+ Documentation in the form of a PDF can be downloaded from the release page, you will need to be signed in to github to access it. We will convert this into a website at some point.
30
38
 
31
39
  ## How To
32
40
 
@@ -42,18 +50,20 @@ usage: rbceq2 --vcf example_multi_sample.vcf.gz --out example --reference_genome
42
50
  options:
43
51
  -h, --help show this help message and exit
44
52
  -v, --version Show programs version number and exit.
45
- --vcf VCF Path to VCF file/s. Give a folder if you want to pass multiple separate files (file names must end in .vcf or .vcf.gz), or alternatively give a file if using a multi-sample VCF. (default: None)
53
+ --vcf VCF Path to VCF file/s. Give a folder if you want to pass multiple separate files (file names must end in .vcf or .vcf.gz), or alternatively give a file if using a
54
+ multi-sample VCF. (default: None)
46
55
  --out OUT Prefix for output files (default: None)
47
- --depth DEPTH Minimum number of reads for a variant (default: 10)
48
- --quality QUALITY Minimum average genotype quality for a variant (default: 10)
56
+ --no_filter Use all variants, not just those where FILTER = PASS in the VCF (default: False)
49
57
  --processes PROCESSES
50
58
  Number of processes. I.e., how many CPUs are available? ~1GB RAM required per process (default: 1)
51
59
  --reference_genome {GRCh37,GRCh38}
52
60
  GRCh37/8 (default: None)
53
61
  --phased Use phase information (default: False)
54
- --microarray Input is from a microarray. (default: False)
55
62
  --debug Enable debug logging. If not set, logging will be at info level. (default: False)
56
63
  --validate Enable VCF validation. Doubles run time. Might help you identify input issues (default: False)
57
64
  --PDFs Generate a per sample PDF report (default: False)
58
65
  --HPAs Generate results for HPA (default: False)
66
+ --min_size MIN_SIZE Minimum size indel/SV to apply fuzzy matching to (default: 10)
67
+ --RH Generate results for RHD and RHCE. WARNING! Long read only! (default: False)
68
+
59
69
  ```
@@ -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.3"
10
10
  description = "Call ISBT alleles from VCF/s"
11
11
  readme = "README.md"
12
12
  license = { file = "LICENSE" }