Description Usage Arguments Value Examples
Returns a binary matrix of IBD (1) and non-IBD (0) for each SNP and pair combination.
1 | getLocusMatrix(ped.genotypes, ibd.segments)
|
ped.genotypes |
a named list containing |
ibd.segments |
a named list containing the |
A data frame the first four columns:
Chromosome (type "character"
, "numeric"
or "integer"
)
SNP identifiers (type "character"
)
Genetic map distance (centi morgans, cM) (type "numeric"
)
Base-pair position (type "integer"
)
where each row describes a unique SNP. These columns are headed chr, snp_id, pos_M
and pos_bp
respectively.
Columns 5 onwards contain the binary IBD information for each sample pair, where a single column corresponds to a single pair.
These columns are labeled with merged family IDs and individual IDs separated by a slash symbol (/). For example famA/ind1/famA/ind2.
1 2 3 | # generate a binary IBD matrix
my_locus_matrix <- getLocusMatrix(ped.genotypes = example_genotypes,
ibd.segments = example_ibd)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.