GtoD

Description

Computes an Euclidean distance matrix using a genomic relationship matrix.

Usage

1
  GtoD(G)

Arguments

G

Genomic relationship matrix, dimmension nxn.

Details

D[i,j]=G[i,i]+G[j,j]-2G[i,j]

Value

The matrix with Euclidean distances.

Author(s)

Paulino Perez, Gustavo de los Campos

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
  library(BGLRutils)
  genos_file = system.file("extdata/mouse/bin/genosInt.bin", package="BGLRutils")
  G=G_matrix(n=1814,p=10346,file=genos_file,n_submatrix=2,
             center_internally=0,standard_internally=0)

  D=GtoD(G)

## End(Not run)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.