buildMixtureDomains {DNAmixturesLite} | R Documentation |
Create RHugin domains for computation.
Description
The function is intended for internal use in
DNAmixture
, and it creates one network per
marker.
IMPORTANT: This is the DNAmixturesLite package, which is intended as a service to enable users to try DNAmixtures without purchasing a commercial licence for Hugin. When at all possible, we strongly recommend the use of DNAmixtures rather than this lite-version. See https://dnamixtures.r-forge.r-project.org/ for details on both packages.
While the lite-version seeks to provide the full functionality of DNAmixtures, note that computations are much less efficient and that there are some differences in available functionality. Be aware that the present documentation is copied from DNAmixtures and thus may not accurately describe the implementation of this lite-version.
Usage
buildMixtureDomains(
n.unknown,
data,
domainnamelist,
write,
dir = NULL,
ntraces = 1,
triangulate = TRUE,
compile = TRUE,
compress = TRUE,
use.order = TRUE
)
Arguments
n.unknown |
Number of unknown contributors |
data |
A list of |
domainnamelist |
List of names for networkfiles. |
write |
[not available in lite-version] Save networkfiles? Defaults to |
dir |
Path to the networkfiles. |
ntraces |
Number of traces (EPG's) |
triangulate |
Triangulate the networks? Default is to triangulate the network using a good elimination order. |
compile |
Compile the networks? Defaults to |
compress |
Compress the network? Defaults to |
use.order |
Should the default elimination order be used for triangulation? Otherwise the "total.weight" heuristic for triangulation in HUGIN is used. |
Details
For one marker, the network contains variables
n_i_a
The number of alleles
a
that unknown contributorUi
possesses.S_i_a
Cumulative allele counts, summarising how many alleles amongst types 1, ...,
a
that contributori
possesses.O_r_a
Binary variable representing observed peak height for allele
a
in EPGr
. SeesetCPT.O
for details.D_r_a
Binary variable representing the event of a peak for allele
a
falling below threshold in EPGr
.Q_r_a
Binary variable representing the event of a peak for allele
a
being smaller than the peak observed in EPGr
.
The network is by default triangulated, compiled,
compressed, and, optionally, saved as a hkb-file. If the networks
are large – if there are many unknown contributors – it is worth
considering saving the networks rather than re-building them every time
DNAmixture
is called.
Value
A list containing a list of pointers for RHugin domains. Additionally a list of the total size of the compressed junction tree in percent of the uncompressed size.
Note
If amelogenin is included as a marker, use integer codes for the alleles with X preceding Y, e.g. X=0, Y=1.
Author(s)
Therese Graversen