Skip to content

hscovar

Calculation of Covariance Between Markers for Half-Sib Families

v0.4.2 · Apr 13, 2021 · GPL (>= 2)

Description

The theoretical covariance between pairs of markers is calculated from either paternal haplotypes and maternal linkage disequilibrium (LD) or vise versa. A genetic map is required. Grouping of markers is based on the correlation matrix and a representative marker is suggested for each group. Employing the correlation matrix, optimal sample size can be derived for association studies based on a SNP-BLUP approach. The implementation relies on paternal half-sib families and biallelic markers. If maternal half-sib families are used, the roles of sire/dam are swapped. Multiple families can be considered. Wittenburg, Bonk, Doschoris, Reyer (2020) "Design of Experiments for Fine-Mapping Quantitative Trait Loci in Livestock Populations" <doi:10.1186/s12863-020-00871-1>. Carlson, Eberle, Rieder, Yi, Kruglyak, Nickerson (2004) "Selecting a maximally informative set of single-nucleotide polymorphisms for association analyses using linkage disequilibrium" <doi:10.1086/381000>.

Downloads

217

Last 30 days

21118th

598

Last 90 days

2.3K

Last year

Trend: -0.9% (30d vs prior 30d)

CRAN Check Status

14 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 30, 2026
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 10, 2026
ERROR r-devel-macos-arm64

examples

Running examples in ‘hscovar-Ex.R’ failed
The error most likely occurred in:

> ### Name: tagSNP
> ### Title: tagSNP
> ### Aliases: tagSNP
> 
> ### ** Examples
> 
>   ### 1: INPUT DATA
>   data(testdata)
>   ### 2: COVARIANCE/CORRELATION MATRIX
>   c
...[truncated]...
of the job will be affected
0 SNPs have non-zero variance -> output matrix has reduced dimensions.
Error in `rownames<-`(`*tmp*`, value = 1:p) : 
  attempt to set 'rownames' on an object with no dimensions
Calls: CovMat -> rownames<-
Execution halted

Dependency Network

Dependencies Reverse dependencies Matrix foreach rlist pwr hscovar

Version History

new 0.4.2 Mar 10, 2026
updated 0.4.2 ← 0.4.0 diff Apr 12, 2021
updated 0.4.0 ← 0.2.1 diff Aug 5, 2020
updated 0.2.1 ← 0.1.2 diff Apr 15, 2020
new 0.1.2 Mar 3, 2020