Package: relSim 1.0.0

relSim: Relative Simulator

A set of tools to explore the behaviour statistics used for forensic DNA interpretation when close relatives are involved. The package also offers some useful tools for exploring other forensic DNA situations.

Authors:James M. Curran

relSim_1.0.0.tar.gz
relSim_1.0.0.zip(r-4.5)relSim_1.0.0.zip(r-4.4)relSim_1.0.0.zip(r-4.3)
relSim_1.0.0.tgz(r-4.4-x86_64)relSim_1.0.0.tgz(r-4.4-arm64)relSim_1.0.0.tgz(r-4.3-x86_64)relSim_1.0.0.tgz(r-4.3-arm64)
relSim_1.0.0.tar.gz(r-4.5-noble)relSim_1.0.0.tar.gz(r-4.4-noble)
relSim_1.0.0.tgz(r-4.4-emscripten)relSim_1.0.0.tgz(r-4.3-emscripten)
relSim.pdf |relSim.html
relSim/json (API)
NEWS

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

Peer review:

Bug tracker:https://github.com/jmcurran/relsim/issues

Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:
  • USCaucs - CODIS STR Loci allele frequency data
  • fbiCaucs - CODIS STR Loci allele frequency data

On CRAN:

32 exports 0.75 score 27 dependencies 30 scripts 314 downloads

Last updated 10 months agofrom:d255f324a2. Checks:OK: 9. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 07 2024
R-4.5-win-x86_64OKSep 07 2024
R-4.5-linux-x86_64OKSep 07 2024
R-4.4-win-x86_64OKSep 07 2024
R-4.4-mac-x86_64OKSep 07 2024
R-4.4-mac-aarch64OKSep 07 2024
R-4.3-win-x86_64OKSep 07 2024
R-4.3-mac-x86_64OKSep 07 2024
R-4.3-mac-aarch64OKSep 07 2024

Exports:allPairsLRbreedFstcalcFstcalcFStatscheckFreqseperrorRateexclusionPowerfamSearchfetchBMdataIBSISlocusIBSlrMixlrPClrSiblrSibDebugnormalizeFreqsrandomChildrandomPCPairsrandomProfilerandomProfilePairsrandomSamplerandomSibrandomSibPairsreadFreqsreadProfilesreadResultssimsimNpersonMixturetoNexuswritePop

Dependencies:askpassclicurlfansigluehttrjsonlitelifecyclemagrittrmimemulticoolopensslpillarpkgconfigR6Rcpprlangrvestselectrstringistringrsystibbleutf8vctrsxml2xtable

Readme and manuals

Help Manual

Help pageTopics
Compute the likehood ratio for all pairs of profiles in a databaseallPairsLR
Perform relatives simulations using large memory blocks in CblockSim
Breed a population with an approximate level of theta(Fst)breedFst
Caculate locus-wise and population Fst valuescalcFst
Calculate locus-wise and population theta = F_ST, F = F_IT, and f = F_IS valuescalcFStats
Make sure that the frequencies are suchcheckFreqs
Returns the false positive or false negative rates for a set of IBS and/or KI thresholdserrorRate
Calculate the exclusion power of a multiplex by locusep exclusionPower
Search a database for siblings or childrenfamSearch
CODIS STR Loci allele frequency datafbiCaucs
Retrieve data from Budowle and Moretti (1999) from the webfetchBMdata
Identity by stateIBS
Use importance sampling to determine the probability of m peaks from n contributors to a mixtureIS
Identity by state at a locuslocusIBS
Calculate locuswise likelihood ratios for two person victim/suspect mixtureslrMix
Likelihood Ratio for Parent-Child / Paternity IndexlrPC
Likelihood Ratio / Kinship Index for full-siblingslrSib
Likelihood Ratio / Kinship Index for full-siblingslrSibDebug
Normalize frequencies to 1normalizeFreqs
Print summary details of a substructed populationprint.population
Print a DNA profileprint.profile
Generate a random child from a given DNA profile and a given set of allele frequenciesrandomChild
Generate one or more random parent/child pairs from a given set of allele frequenciesrandomPCPairs
Generate a random DNA profile from a given set of allele frequenciesrandomProfile
Generate one or more random DNA profile pairs from a given set of allele frequenciesrandomProfilePairs
Generate a random sample of related (or unrelated) pairs of peoplerandomSample
Generate a random sibling from a given DNA profile and a given set of allele frequenciesrandomSib
Generate one or more pairs of random siblings from a given set of allele frequenciesrandomSibPairs
Read in a file of allele frequenciesreadFreqs
Read a set of profiles from a filereadProfiles
Read a simulation result set from filereadResults
Perform the relatives simulationsim
Simulate and count unique alleles in N person mixturessimNpersonMixture
Export a population with substructure to a Nexus filetoNexus
CODIS STR Loci allele frequency dataUSCaucs
Saves/writes population frequencies to diskwriteCSV
Saves/writes population profiles to diskwritePop