Call ISBT alleles from VCF/s
Project description
RBCeq2: blood group allele inference |
|
[!WARNING] NOT FOR CLINICAL USE
Version v2.4.3
RBCeq2 reads in genomic variant data in the form of variant call files (VCF) and outputs blood group (BG) genotype and phenotype inference.
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.
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.
Database v2.5.0
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.
Bugs
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.
QC
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.
Documentation
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.
How To
Install via pip (python3.12+) or clone the git repository:
pip install RBCeq2
rbceq2 -h
usage: rbceq2 --vcf example_multi_sample.vcf.gz --out example --reference_genome GRCh37
options:
-h, --help show this help message and exit
-v, --version Show programs version number and exit.
--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)
--out OUT Prefix for output files (default: None)
--no_filter Use all variants, not just those where FILTER = PASS in the VCF (default: False)
--processes PROCESSES
Number of processes. I.e., how many CPUs are available? ~1GB RAM required per process (default: 1)
--reference_genome {GRCh37,GRCh38}
GRCh37/8 (default: None)
--phased Use phase information (default: False)
--debug Enable debug logging. If not set, logging will be at info level. (default: False)
--validate Enable VCF validation. Doubles run time. Might help you identify input issues (default: False)
--PDFs Generate a per sample PDF report (default: False)
--HPAs Generate results for HPA (default: False)
--min_size MIN_SIZE Minimum size indel/SV to apply fuzzy matching to (default: 10)
--RH Generate results for RHD and RHCE. WARNING! Long read only! (default: False)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rbceq2-2.4.3.tar.gz.
File metadata
- Download URL: rbceq2-2.4.3.tar.gz
- Upload date:
- Size: 320.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5fa42ac83deba9bb68a8c143bce5f72a3a0a2a8d0879de7985e376e30000705f
|
|
| MD5 |
6f06d262231c9c0b71c1b30e7f53afa3
|
|
| BLAKE2b-256 |
9adcb6427f33a90692d62d6bf0c1f8aa3675c2ee6b009424d6090d0214c00340
|
File details
Details for the file rbceq2-2.4.3-py3-none-any.whl.
File metadata
- Download URL: rbceq2-2.4.3-py3-none-any.whl
- Upload date:
- Size: 251.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
22fdaadacc7d472e0a3d6265874fa26f5401f8327194cf3c4828a93d33d30ca2
|
|
| MD5 |
eb45d7fae14bc573f6d9cc9fc68ab1f2
|
|
| BLAKE2b-256 |
a797855a69f4a15da681f9e089d5d5e49cc2694b601126be82ab327c961ce913
|