Back

The B-value calculator: expected diversity under background selection

Marsh, J. I.; Daigle, A. T.; Johri, P.

2026-03-06 evolutionary biology
10.64898/2026.03.04.709642 bioRxiv
Show abstract

Background selection (BGS), resulting from indirect effects of selection at linked and unlinked conserved sites experiencing purifying selection, is a key evolutionary force that shapes patterns of diversity across genomes. Calculating the expected diversity at neutral sites under BGS relative to that under strict neutrality (referred to as B-value or simply B) is important for understanding processes that shape patterns of genomic variation and for developing null models when performing inference, in particular, demographic inference and detection of selective sweeps. We extend and integrate previous theory to estimate B-values analytically, assuming no selective interference. Here, we present the B-value calculator, Bvalcalc, an easy-to-use command-line interface written in Python for efficient analytical calculation of expected B genome-wide at single base-pair resolution. Bvalcalc has several modules for calculating diversity as a function of distance from a single conserved element or considering the multiplicative effects of all conserved elements across the genome, accounting for recombination maps, gene conversion, self-fertilization, single population size changes, and unlinked effects from other chromosomes, where specified. We validated the effectiveness of Bvalcalc with comparisons against simulated results, and generated B-maps for the model species Homo sapiens, Drosophila melanogaster and Arabidopsis thaliana as a proof of concept using public data. Bvalcalc is available with documentation at johrilab.github.io/Bvalcalc/.

Matching journals

The top 3 journals account for 50% of the predicted probability mass.

1
Molecular Biology and Evolution
488 papers in training set
Top 0.1%
27.5%
2
PLOS Genetics
756 papers in training set
Top 0.8%
12.4%
3
Genetics
225 papers in training set
Top 0.3%
12.3%
50% of probability mass above
4
eLife
5422 papers in training set
Top 22%
3.9%
5
Genome Biology
555 papers in training set
Top 2%
3.6%
6
GENETICS
189 papers in training set
Top 0.3%
3.6%
7
Bioinformatics
1061 papers in training set
Top 5%
3.6%
8
PLOS Computational Biology
1633 papers in training set
Top 11%
3.2%
9
Peer Community Journal
254 papers in training set
Top 2%
1.9%
10
Proceedings of the National Academy of Sciences
2130 papers in training set
Top 30%
1.9%
11
Nature Communications
4913 papers in training set
Top 50%
1.8%
12
Genome Biology and Evolution
280 papers in training set
Top 1%
1.7%
13
Nature Ecology & Evolution
113 papers in training set
Top 3%
1.7%
14
Philosophical Transactions of the Royal Society B
51 papers in training set
Top 3%
1.7%
15
Evolution Letters
71 papers in training set
Top 1%
1.7%
16
Virus Evolution
140 papers in training set
Top 0.9%
1.3%
17
Molecular Ecology Resources
161 papers in training set
Top 0.8%
1.1%
18
The American Journal of Human Genetics
206 papers in training set
Top 3%
1.1%
19
PLOS Biology
408 papers in training set
Top 16%
0.9%
20
Evolution
199 papers in training set
Top 2%
0.9%
21
Genome Research
409 papers in training set
Top 4%
0.8%
22
G3 Genes|Genomes|Genetics
351 papers in training set
Top 2%
0.8%
23
Journal of Evolutionary Biology
98 papers in training set
Top 1%
0.7%
24
iScience
1063 papers in training set
Top 37%
0.6%
25
Methods in Ecology and Evolution
160 papers in training set
Top 3%
0.6%