Creates a binary matrix of IBD (1) and non-IBD (0) with each row representing a single SNP and each column representing a unique pair. The number of rows is equal to the total number of SNPs and the number of columns is equal to the number of pairs.
1 2 | IBDMatrix(chromosomes, positions_bp, number_pairs, ibd_pairs_colnumbers,
ibd_chromosomes, ibd_start_bp, ibd_stop_bp)
|
chromosomes |
A character vector containing the corresponding chromosome for each SNP |
positions_bp |
A numeric vector containing the corresponding bp position for each SNP |
number_pairs |
Numeric. The total number of pairs analysed |
ibd_pairs_colnumbers |
A numeric vector corresponding to column numbers in the output matrix where each unique number refers to a unique pair with IBD inferred |
ibd_chromosomes |
A character vector containing the chromosome for each detected IBD segment |
ibd_start_bp |
A numeric vector containing the base-pair position for the start of each detected IBD segment |
ibd_stop_bp |
A numeric vector containing the base-pair position for the end of each detected IBD segment |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.