| harmoniseMarkers | R Documentation |
Ensures all components of a ped list contain the same markers in identical order. Missing markers are added with empty genotypes. Markers whose attributes differ between components are updated to match the first occurrence of the marker. Note that this function removes all unnamed markers, unless the input is returned unchanged (see Details).
harmoniseMarkers(x, verbose = TRUE)
x |
A list of |
verbose |
A logical. |
If the input is a single connected pedigree, it is returned as is.
If all marker attributes are identical across all components, x is also
returned unchanged.
A copy of x where all components have the same markers attached,
and in the same order. Unnamed markers are removed (unless x is returned
unchanged, see Details).
x = list(
singleton(1) |> addMarker(), # unnamed marker will be removed
singleton(2) |> addMarker(name = "M1", alleles = 1:2),
singleton(3) |> addMarker(name = "M1", alleles = 1:3), # will be modified
singleton(4) |> addMarker(geno = "3/3", alleles = 1:3, name = "M2")
)
harmoniseMarkers(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.