Learn R Programming

relSim

Copy Link

Version

Install

install.packages('relSim')

Monthly Downloads

204

Version

1.0.0

License

GPL (>= 2)

Maintainer

James Curran

Last Published

December 4th, 2023

Functions in relSim (1.0.0)

randomProfile

Generate a random DNA profile from a given set of allele frequencies
randomSibPairs

Generate one or more pairs of random siblings from a given set of allele frequencies
randomSib

Generate a random sibling from a given DNA profile and a given set of allele frequencies
relSim-package

relSim: Relative Simulator
sim

Perform the relatives simulation
randomSample

Generate a random sample of related (or unrelated) pairs of people
writePop

Saves/writes population profiles to disk
print.profile

Print a DNA profile
print.population

Print summary details of a substructed population
writeCSV

Saves/writes population frequencies to disk
randomChild

Generate a random child from a given DNA profile and a given set of allele frequencies
normalizeFreqs

Normalize frequencies to 1
lrSibDebug

Likelihood Ratio / Kinship Index for full-siblings
randomPCPairs

Generate one or more random parent/child pairs from a given set of allele frequencies
readFreqs

Read in a file of allele frequencies
readResults

Read a simulation result set from file
simNpersonMixture

Simulate and count unique alleles in N person mixtures
readProfiles

Read a set of profiles from a file
randomProfilePairs

Generate one or more random DNA profile pairs from a given set of allele frequencies
toNexus

Export a population with substructure to a Nexus file
allPairsLR

Compute the likehood ratio for all pairs of profiles in a database
errorRate

Returns the false positive or false negative rates for a set of IBS and/or KI thresholds
IBS

Identity by state
checkFreqs

Make sure that the frequencies are such
blockSim

Perform relatives simulations using large memory blocks in C
calcFStats

Calculate locus-wise and population \(\theta = F_{ST}\), \(F = F_{IT}\), and \(f = F_{IS}\) values
USCaucs

CODIS STR Loci allele frequency data
IS

Use importance sampling to determine the probability of m peaks from n contributors to a mixture
breedFst

Breed a population with an approximate level of \(\theta\)(\(F_{ST}\))
calcFst

Caculate locus-wise and population \(F_{ST}\) values
famSearch

Search a database for siblings or children
exclusionPower

Calculate the exclusion power of a multiplex by locus
lrPC

Likelihood Ratio for Parent-Child / Paternity Index
lrMix

Calculate locuswise likelihood ratios for two person victim/suspect mixtures
locusIBS

Identity by state at a locus
fbiCaucs

CODIS STR Loci allele frequency data
fetchBMdata

Retrieve data from Budowle and Moretti (1999) from the web
lrSib

Likelihood Ratio / Kinship Index for full-siblings