genoSecretor
genoSecretor infers genetically determined FUT2 secretor status from VCF, BGEN, PGEN, and PLINK genotype datasets.
pip install genosecretor
genosecretor biobank.pgen --out secretor
Research use only. genoSecretor is intended for population-genetics, epidemiology, GWAS, PheWAS, and biobank research. Genotype-inferred secretor status does not capture all rare or atypical FUT2 alleles and must not be used for clinical decision-making.
Quick start
genosecretor cohort.pgen --out secretor
# writes: secretor.secretor.tsv, secretor.qc.tsv, secretor.summary.txt, secretor.report.html
See docs/usage.md for the full CLI and Python API.
See docs/workflow.md for the full load-to-output pipeline.
See examples/ for VCF (unphased and phased), PGEN, and PLINK1 demos across builds and marker notations (./examples/run_synthetic.sh), plus 1000 Genomes FUT2 slices and an --assume-trans vs phase check.
Inspect markers without calling:
genosecretor cohort.pgen --inspect
Supported formats
| Format | Extensions | Notes |
|---|---|---|
| VCF/BCF | .vcf, .vcf.gz, .bcf |
GT, phased GT, DS, GP. BCF is reported as BCF. |
| PLINK2 | .pgen + .pvar + .psam |
Auto-locates companion files |
| PLINK1 | .bed + .bim + .fam |
Auto-detected from .bed; --format plink1 also works |
| BGEN | .bgen (+ optional .sample) |
Dosage/probability support. Reader implemented; no bundled BGEN fixture yet. |
Methods
genosecretor --methods
genosecretor --method-info two-marker
genosecretor data.pgen --method auto # default
genosecretor data.pgen --ancestry eas # require rs1047781; refuse `common` without it
genosecretor data.pgen --method two-marker
genosecretor data.pgen --method common
genosecretor data.pgen --method eas
genosecretor data.pgen --method proxy
| Method | Markers | Use case |
|---|---|---|
two-marker |
rs601338, rs1047781 | Ancestry-aware se428 + se385 |
common |
rs601338 | European/African complete null (W143X) |
eas |
rs1047781 | East Asian weak allele (I129F) |
proxy |
rs602662 (± rs601338) | GWAS-chip LD proxy for se428 |
Phenotypes: secretor, weak-secretor (Se^w/Se^w or Se^w/se), non-secretor (se/se). --phenotype-coding gwas recodes weak-secretor as non-secretor.
Options
--format auto|vcf|bcf|bgen|pgen|plink1
--build auto|hg19|hg38|chm13 # also GRCh37, GRCh38, CHM13v2, hs1
--method auto|two-marker|common|eas|proxy
--ancestry auto|eas|eur|afr|amr|unknown
--geno-mode auto|hardcall|dosage|probability
--phase auto|phased|unphased
--assume-trans / --no-assume-trans
--phenotype-coding biochemical|gwas
--min-genotype-prob 0.90
--dosage-hardcall-threshold 0.1
--strict-method
--inspect
--methods
--method-info NAME
--version
--report PATH.html
Full option list: docs/usage.md.
Python API
from genosecretor import SecretorCaller
caller = SecretorCaller(method="auto", ancestry="auto", build="auto")
result = caller.call("ukb.pgen")
for call in result.calls:
print(call.sample.iid, call.secretor_status, call.fut2_genotype)
Genome builds
GRCh37/hg19, GRCh38/hg38, and T2T-CHM13v2 are supported. Build auto-detection uses marker coordinates, VCF header metadata, and chromosome lengths. Conflicting evidence returns an error requiring explicit --build.
Citations
Full records are printed by genosecretor --method-info NAME and in the Citations section of each HTML run report.
- software — Yunye He. genoSecretor: genetically determined FUT2 secretor status inference from genotype datasets. Version 0.3.0. 2026. https://github.com/cloufield/genoSecretor.
- common — Kelly RJ, Rouquier S, Giorgi D, Lennon GG, Lowe JB. Sequence and expression of a candidate for the human Secretor blood group alpha(1,2)fucosyltransferase gene (FUT2). J Biol Chem. 1995;270:4640–4649. DOI: 10.1074/jbc.270.9.4640. PMID: 7876234.
- two-marker — Smyth DJ, Cooper JD, Howson JMM, et al. FUT2 nonsecretor status links type 1 diabetes susceptibility and resistance to infection. Diabetes. 2011;60:3081–3084. DOI: 10.2337/db11-0138. PMID: 22042020.
- eas — Koda Y, Soejima M, Liu Y, Kimura H. Molecular basis for secretor type α(1,2)-fucosyltransferase gene deficiency in a Japanese population. J Biol Chem. 1996;271:7410–7415. DOI: 10.1074/jbc.271.13.7410. PMID: 8631766.
- proxy — Barrett JC, Hansoul S, Nicolae DL, et al. Genome-wide association defines more than 30 distinct susceptibility loci for Crohn's disease. Nat Genet. 2008;40:955–962. DOI: 10.1038/ng.215. PMID: 18587394.
See Inference methods for used-in and molecular-basis notes.
Documentation
https://cloufield.github.io/genoSecretor/
Preview the docs site locally:
pip install -e ".[docs]"
./serve.sh # http://127.0.0.1:8000
zensical build # writes ./site/
- Usage
- Inference methods
- Marker coordinates (includes 1000 Genomes LD r²)
- Assumptions and limitations
- Examples
- Update Log
License
MIT — see LICENSE.
Metadata
Release files for genosecretor 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| genosecretor-0.3.0.tar.gz | 233.5 kB | Without provenance | Details for genosecretor-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| genosecretor-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for genosecretor-0.3.0-py3-none-any.whl |
Total release size: 292.5 kB
Release files / genosecretor-0.3.0.tar.gz
| Download URL | genosecretor-0.3.0.tar.gz |
|---|---|
| Size | 233.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e1d644390661600f3d6f9b19c8c93508fc2393f55d3a6ef152cd911e8af8c0e9
|
|
BLAKE2b-256 checksum How to use checksums |
84896f49b115686ed0c9882d03ba89788203c65aac11539788c272f0fb10515d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.0
|
Release files / genosecretor-0.3.0-py3-none-any.whl
| Download URL | genosecretor-0.3.0-py3-none-any.whl |
|---|---|
| Size | 59.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5a325f4103d14b0d3ae0f0879382f98e41862e5fe65089f20a69234e8e405945
|
|
BLAKE2b-256 checksum How to use checksums |
135db2f630c303ae126a18e53d39b4a628ba75b67008747d1ecea646b1154b00
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.0
|
Security for genosecretor 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.