RBCeq2 2.4.1__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.1/src/rbceq2.egg-info → rbceq2-2.4.3}/PKG-INFO +20 -10
  2. {rbceq2-2.4.1 → rbceq2-2.4.3}/README.md +19 -9
  3. {rbceq2-2.4.1 → 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.1 → rbceq2-2.4.3}/src/rbceq2/IO/vcf.py +1 -27
  7. {rbceq2-2.4.1 → rbceq2-2.4.3}/src/rbceq2/core_logic/constants.py +4 -2
  8. {rbceq2-2.4.1 → rbceq2-2.4.3}/src/rbceq2/core_logic/large_variants.py +160 -29
  9. {rbceq2-2.4.1 → rbceq2-2.4.3}/src/rbceq2/db/db.py +5 -0
  10. {rbceq2-2.4.1 → rbceq2-2.4.3}/src/rbceq2/filters/phased.py +4 -1
  11. {rbceq2-2.4.1 → rbceq2-2.4.3}/src/rbceq2/main.py +12 -6
  12. {rbceq2-2.4.1 → rbceq2-2.4.3}/src/rbceq2/phenotype/antigens.py +1 -1
  13. {rbceq2-2.4.1 → rbceq2-2.4.3}/src/rbceq2/phenotype/choose_pheno.py +2 -2
  14. rbceq2-2.4.3/src/rbceq2/resources/db.tsv +2051 -0
  15. {rbceq2-2.4.1 → rbceq2-2.4.3/src/rbceq2.egg-info}/PKG-INFO +20 -10
  16. {rbceq2-2.4.1 → rbceq2-2.4.3}/src/rbceq2.egg-info/SOURCES.txt +0 -1
  17. rbceq2-2.4.1/src/rbceq2/IO/PDF_reports.py +0 -558
  18. rbceq2-2.4.1/src/rbceq2/IO/encoders.py +0 -237
  19. rbceq2-2.4.1/src/rbceq2/resources/db.tsv +0 -2008
  20. rbceq2-2.4.1/src/rbceq2/resources/db_backup.tsv +0 -2008
  21. {rbceq2-2.4.1 → rbceq2-2.4.3}/LICENSE +0 -0
  22. {rbceq2-2.4.1 → rbceq2-2.4.3}/MANIFEST.in +0 -0
  23. {rbceq2-2.4.1 → rbceq2-2.4.3}/setup.cfg +0 -0
  24. {rbceq2-2.4.1 → rbceq2-2.4.3}/src/rbceq2/IO/__init__.py +0 -0
  25. {rbceq2-2.4.1 → rbceq2-2.4.3}/src/rbceq2/IO/record_data.py +0 -0
  26. {rbceq2-2.4.1 → rbceq2-2.4.3}/src/rbceq2/IO/validation.py +0 -0
  27. {rbceq2-2.4.1 → rbceq2-2.4.3}/src/rbceq2/__init__.py +0 -0
  28. {rbceq2-2.4.1 → rbceq2-2.4.3}/src/rbceq2/core_logic/__init__.py +0 -0
  29. {rbceq2-2.4.1 → rbceq2-2.4.3}/src/rbceq2/core_logic/alleles.py +0 -0
  30. {rbceq2-2.4.1 → rbceq2-2.4.3}/src/rbceq2/core_logic/co_existing.py +0 -0
  31. {rbceq2-2.4.1 → rbceq2-2.4.3}/src/rbceq2/core_logic/data_procesing.py +0 -0
  32. {rbceq2-2.4.1 → rbceq2-2.4.3}/src/rbceq2/core_logic/utils.py +0 -0
  33. {rbceq2-2.4.1 → rbceq2-2.4.3}/src/rbceq2/db/__init__.py +0 -0
  34. {rbceq2-2.4.1 → rbceq2-2.4.3}/src/rbceq2/filters/__init__.py +0 -0
  35. {rbceq2-2.4.1 → rbceq2-2.4.3}/src/rbceq2/filters/geno.py +0 -0
  36. {rbceq2-2.4.1 → rbceq2-2.4.3}/src/rbceq2/filters/knops.py +0 -0
  37. {rbceq2-2.4.1 → rbceq2-2.4.3}/src/rbceq2/filters/shared_filter_functionality.py +0 -0
  38. {rbceq2-2.4.1 → rbceq2-2.4.3}/src/rbceq2/phenotype/__init__.py +0 -0
  39. {rbceq2-2.4.1 → rbceq2-2.4.3}/src/rbceq2.egg-info/dependency_links.txt +0 -0
  40. {rbceq2-2.4.1 → rbceq2-2.4.3}/src/rbceq2.egg-info/entry_points.txt +0 -0
  41. {rbceq2-2.4.1 → rbceq2-2.4.3}/src/rbceq2.egg-info/requires.txt +0 -0
  42. {rbceq2-2.4.1 → rbceq2-2.4.3}/src/rbceq2.egg-info/top_level.txt +0 -0
  43. {rbceq2-2.4.1 → rbceq2-2.4.3}/tests/test_IO.py +0 -0
  44. {rbceq2-2.4.1 → rbceq2-2.4.3}/tests/test_VCF.py +0 -0
  45. {rbceq2-2.4.1 → rbceq2-2.4.3}/tests/test_alleles.py +0 -0
  46. {rbceq2-2.4.1 → rbceq2-2.4.3}/tests/test_ants.py +0 -0
  47. {rbceq2-2.4.1 → rbceq2-2.4.3}/tests/test_choose_pheno.py +0 -0
  48. {rbceq2-2.4.1 → rbceq2-2.4.3}/tests/test_co_filters.py +0 -0
  49. {rbceq2-2.4.1 → rbceq2-2.4.3}/tests/test_coexisting.py +0 -0
  50. {rbceq2-2.4.1 → rbceq2-2.4.3}/tests/test_data_processing.py +0 -0
  51. {rbceq2-2.4.1 → rbceq2-2.4.3}/tests/test_db.py +0 -0
  52. {rbceq2-2.4.1 → rbceq2-2.4.3}/tests/test_filters_phase.py +0 -0
  53. {rbceq2-2.4.1 → rbceq2-2.4.3}/tests/test_geno_filters.py +0 -0
  54. {rbceq2-2.4.1 → rbceq2-2.4.3}/tests/test_large_variants.py +0 -0
  55. {rbceq2-2.4.1 → rbceq2-2.4.3}/tests/test_main.py +0 -0
  56. {rbceq2-2.4.1 → rbceq2-2.4.3}/tests/test_pdf.py +0 -0
  57. {rbceq2-2.4.1 → 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.1
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,20 +46,29 @@ Dynamic: license-file
46
46
  > [!WARNING]
47
47
  > NOT FOR CLINICAL USE
48
48
 
49
- ## Version v2.4.1
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). v2.3.0 focussed on phasing. V2.4.0 (current) focuses on large variants and the RH region, using long read sequencing data.
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
- 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).
62
+
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.
59
68
 
60
69
  ## Documentation
61
70
 
62
- 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.
63
72
 
64
73
  ## How To
65
74
 
@@ -75,19 +84,20 @@ usage: rbceq2 --vcf example_multi_sample.vcf.gz --out example --reference_genome
75
84
  options:
76
85
  -h, --help show this help message and exit
77
86
  -v, --version Show programs version number and exit.
78
- --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)
79
89
  --out OUT Prefix for output files (default: None)
80
- --depth DEPTH Minimum number of reads for a variant (default: 10)
81
- --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)
82
91
  --processes PROCESSES
83
92
  Number of processes. I.e., how many CPUs are available? ~1GB RAM required per process (default: 1)
84
93
  --reference_genome {GRCh37,GRCh38}
85
94
  GRCh37/8 (default: None)
86
95
  --phased Use phase information (default: False)
87
- --microarray Input is from a microarray. (default: False)
88
96
  --debug Enable debug logging. If not set, logging will be at info level. (default: False)
89
97
  --validate Enable VCF validation. Doubles run time. Might help you identify input issues (default: False)
90
98
  --PDFs Generate a per sample PDF report (default: False)
91
99
  --HPAs Generate results for HPA (default: False)
100
+ --min_size MIN_SIZE Minimum size indel/SV to apply fuzzy matching to (default: 10)
92
101
  --RH Generate results for RHD and RHCE. WARNING! Long read only! (default: False)
102
+
93
103
  ```
@@ -12,20 +12,29 @@
12
12
  > [!WARNING]
13
13
  > NOT FOR CLINICAL USE
14
14
 
15
- ## Version v2.4.1
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). v2.3.0 focussed on phasing. V2.4.0 (current) focuses on large variants and the RH region, using long read sequencing data.
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
- 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).
28
+
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.
25
34
 
26
35
  ## Documentation
27
36
 
28
- 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.
29
38
 
30
39
  ## How To
31
40
 
@@ -41,19 +50,20 @@ usage: rbceq2 --vcf example_multi_sample.vcf.gz --out example --reference_genome
41
50
  options:
42
51
  -h, --help show this help message and exit
43
52
  -v, --version Show programs version number and exit.
44
- --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)
45
55
  --out OUT Prefix for output files (default: None)
46
- --depth DEPTH Minimum number of reads for a variant (default: 10)
47
- --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)
48
57
  --processes PROCESSES
49
58
  Number of processes. I.e., how many CPUs are available? ~1GB RAM required per process (default: 1)
50
59
  --reference_genome {GRCh37,GRCh38}
51
60
  GRCh37/8 (default: None)
52
61
  --phased Use phase information (default: False)
53
- --microarray Input is from a microarray. (default: False)
54
62
  --debug Enable debug logging. If not set, logging will be at info level. (default: False)
55
63
  --validate Enable VCF validation. Doubles run time. Might help you identify input issues (default: False)
56
64
  --PDFs Generate a per sample PDF report (default: False)
57
65
  --HPAs Generate results for HPA (default: False)
66
+ --min_size MIN_SIZE Minimum size indel/SV to apply fuzzy matching to (default: 10)
58
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.1"
9
+ version = "2.4.3"
10
10
  description = "Call ISBT alleles from VCF/s"
11
11
  readme = "README.md"
12
12
  license = { file = "LICENSE" }