Description Usage Arguments Value See Also
Calculate the correlation of local ancestry vectors for a single chromosome. Code is currently only applicable to admixed populations with three ancestral populations.
1 2 3 4 5 6 7 8 9 | get_corr_chr(
chrom,
binsize = 0.5,
map,
pop1.gds,
pop2.gds,
pop3.gds,
verbose = TRUE
)
|
chrom |
chromosome number that you are analyzing |
binsize |
size (in cM) of distance bins for calculating correlation; default = 0.5 cM |
map |
map file; data frame with, at minimum, columns 'chr' and 'cM' |
pop1.gds |
name of GDS file storing local ancestry calls for chrom of interest, with alleles coded as 1 = pop 1 ancestry, 0 = pop 2 or 3 |
pop2.gds |
name of GDS file storing local ancestry calls for chrom of interest, with alleles coded as 1 = pop 2 ancestry, 0 = pop 1 or 3 |
pop3.gds |
name of GDS file storing local ancestry calls for chrom of interest, with alleles coded as 1 = pop 3 ancestry, 0 = pop 1 or 2 |
verbose |
do you want to print updates to screen; default = TRUE |
A data table with the observed correlation in local ancestry vectors for a subset of loci on this chromosome.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.