Description Usage Arguments Value See Also Examples
getIBDmatrix()
produces a binary matrix of IBD (1) and non-IBD (0) results for each SNP and isolate pair combination.
Each row identifies a unique SNP while each column identifies a unique isolate pair.
1 | getIBDmatrix(ped.genotypes, ibd.segments)
|
ped.genotypes |
A list containing 2 objects. See the |
ibd.segments |
A data frame containing the IBD segments detected by isoRelate.
See the |
A data frame with 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. Columns 1-4 are headed chr, snp_id, pos_M
and pos_bp
respectively.
Columns 5 onwards contain the binary IBD information for each isolate pair, where a single column corresponds to a single pair.
These columns are labeled with merged family IDs and isolate IDs separated by a slash symbol (/). For example fid1/iid1/fid2/iid2.
getGenotypes
, getIBDsegments
, getIBDproportion
, getIBDiR
.
1 2 3 | # generate a binary IBD matrix
my_matrix <- getIBDmatrix(ped.genotypes = png_genotypes,
ibd.segments = png_ibd)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.