Package: junctions 2.1.4

junctions: The Breakdown of Genomic Ancestry Blocks in Hybrid Lineages

Individual based simulations of hybridizing populations, where the accumulation of junctions is tracked. Furthermore, mathematical equations are provided to verify simulation outcomes. Both simulations and mathematical equations are based on Janzen (2018, <doi:10.1101/058107>) and Janzen (2022, <doi:10.1111/1755-0998.13519>).

Authors:Thijs Janzen [aut, cre]

junctions_2.1.4.tar.gz
junctions_2.1.4.zip(r-4.7)junctions_2.1.4.zip(r-4.6)junctions_2.1.4.zip(r-4.5)
junctions_2.1.4.tgz(r-4.6-x86_64)junctions_2.1.4.tgz(r-4.6-arm64)junctions_2.1.4.tgz(r-4.5-x86_64)junctions_2.1.4.tgz(r-4.5-arm64)
junctions_2.1.4.tar.gz(r-4.7-arm64)junctions_2.1.4.tar.gz(r-4.7-x86_64)junctions_2.1.4.tar.gz(r-4.6-arm64)junctions_2.1.4.tar.gz(r-4.6-x86_64)
junctions_2.1.4.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
junctions/json (API)
NEWS

# Install 'junctions' in R:
install.packages('junctions', repos = c('https://thijsjanzen.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/thijsjanzen/junctions/issues

Pkgdown/docs site:https://thijsjanzen.github.io

Uses libs:
  • c++– GNU Standard C++ Library v3

On CRAN:

Conda:

cpp

4.98 score 2 stars 16 scripts 584 downloads 1 mentions 17 exports 13 dependencies

Last updated from:c71e9bd210. Checks:13 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK157
linux-devel-x86_64OK155
source / vignettesOK271
linux-release-arm64OK154
linux-release-x86_64OK146
macos-release-arm64OK160
macos-release-x86_64OK192
macos-oldrel-arm64OK90
macos-oldrel-x86_64OK346
windows-develOK158
windows-releaseOK119
windows-oldrelOK189
wasm-releaseOK125

Exports:calc_kcalculate_matestimate_timeestimate_time_diploidestimate_time_haploidestimate_time_one_chromlog_likelihood_diploidlog_likelihood_haploidnumber_of_junctionsnumber_of_junctions_backcrossnumber_of_junctions_dinumber_of_junctions_markerssim_backcrossingsim_fin_chromsim_inf_chromsim_phased_unphasedtime_error

Dependencies:cligluelifecyclemagrittrnloptrpillarpkgconfigRcppRcppParallelrlangtibbleutf8vctrs

Junctions

Rendered fromjunctions_vignette.Rmdusingknitr::rmarkdownon Jun 04 2026.

Last update: 2026-03-06
Started: 2017-11-08

Overview_of_the_junctions_package

Rendered fromOverview_of_the_junctions_package.Rmdusingknitr::rmarkdownon Jun 04 2026.

Last update: 2026-03-06
Started: 2021-05-06

Phased and unphased data

Rendered fromphased_and_unphased_data.Rmdusingknitr::rmarkdownon Jun 04 2026.

Last update: 2026-03-06
Started: 2020-09-14

Readme and manuals

Help Manual

Help pageTopics
Extending The Theory of Junctionsjunctions-package junctions
Calculate the limit of the number of junctionscalc_k
Function to calculate the maximum accurate timecalculate_mat
Estimate the time since the onset of hybridization, using the number of junctionsestimate_time
estimates the time since admixture, given diploid ancestry data.estimate_time_diploid
estimate time using likelihood for a single chromosomeestimate_time_haploid
Estimate the time since the onset of hybridization, using the observed number of junctions, taking into account the distribution of markers on a single chromosomeestimate_time_one_chrom
calculate the log likelihood of observing diploid ancestry data.log_likelihood_diploid
log likelihood of the time since admixture for a haploid genomelog_likelihood_haploid
Calculate the average number of junctionsnumber_of_junctions
Calculate the average number of junctions during backcrossingnumber_of_junctions_backcross
Calculate the expected number of junctions between two markers separated by a given amount of recombinationnumber_of_junctions_di
Calculate the expected total number of junctions in a chromosome, given the distribution of markersnumber_of_junctions_markers
Function to simulate data using a back crossing schemesim_backcrossing
Individual Based Simulation of the accumulation of junctionssim_fin_chrom
Individual Based Simulation of the accumulation of junctionssim_inf_chrom
Individual Based Simulation of the accumulation of junctionssim_phased_unphased
Estimate the error in the time estimatetime_error