Description Usage Arguments Value Examples
Calculate the proportion of pairs IBD at each SNP.
1 | getLocusProportion(ped.genotypes, locus.matrix, groups = NULL)
|
ped.genotypes |
a named list containing |
locus.matrix |
a data frame containing the binary IBD information for each SNP and each pair.
See |
groups |
a data frame with three columns of information:
Group ID, for example, can be affection status.
If |
A data frame the following 5 columns:
Chromosome (type "character"
, "numeric"
or "integer"
)
SNP identifiers (type "character"
)
Genetic map distance (centi morgans, cM) (type "numeric"
)
Base-pair position (type "integer"
)
Proportion of pairs IBD (type "integer"
)
where each row describes a unique SNP. The data frame is headed
chr, snp_id, pos_M, pos_bp
and prop
respectively. If groups
is
specified then there will be one column of proportions of each combination of groups with
these column header by group IDs and the number of pairs in the group.
1 2 3 4 5 6 7 8 | # generate a binary IBD matrix
my_locus_matrix <- getLocusMatrix(ped.genotypes = example_genotypes,
ibd.segments = example_ibd)
# calculate the proportion of pairs IBD at each SNP
my_locus_prop <- getLocusProportion(ped.genotypes = example_genotypes,
locus.matrix = my_locus_matrix,
groups = NULL)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.