Description Usage Arguments Value See Also Examples
getIBDsegments()
detects genomic regions shared IBD between all pairwise combinations of isolates.
1 2 | getIBDsegments(ped.genotypes, parameters, number.cores = 1,
minimum.snps = 20, minimum.length.bp = 50000, error = 0.001)
|
ped.genotypes |
A list containing 2 objects.
See the |
parameters |
A data frame containing meioses and IBD probability estimates for all pairwise combinations of isolates.
See the |
number.cores |
Positive integer. The number of cores used for parallel execution. |
minimum.snps |
An integer value denoting the minimum number of SNPs in an IBD segment for it to be reported. The default value is 20 SNPs. |
minimum.length.bp |
The minimum length of a reported IBD segment. The default value is 50,000 bp. |
error |
The genotyping error rate. The default value is 0.001. |
A data frame with the following columns
Family 1 ID
Isolate 1 ID
Family 2 ID
Isolate 2 ID
Chromosome
Start SNP
End SNP
Start position bp
End position bp
Start position M
End position M
Number of SNPs
Length bp
Length M
IBD status (1 = one allele shared IBD, 2 = two alleles shared IBD)
where each row describes a unique IBD segment. The data frame is headed fid1, iid1, fid2, iid2, chr, start_snp, end_snp,
start_position_bp, end_position_bp, start_position_M, end_position_M, number_snps, length_bp, length_M
and ibd_status
respectively.
getGenotypes
and getIBDparameters
.
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run:
# prior to IBD detection, parameter estimates must be estimated.
# Assuming this has been done, IBD inference is performed
my_ibd <- getIBDsegments(ped.genotypes = png_genotypes,
parameters = png_parameters,
number.cores = 1,
minimum.snps = 20,
minimum.length.bp = 50000,
error = 0.001)
head(my_ibd)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.