gcmatrix: Convert Atlas of Genetic Correlations to a matrix

Description Usage Arguments Value See Also

Description

This function extracts any of the variables in the gcatlas object and returns it as a square matrix, with traits as rows and columns.

Usage

1
gcmatrix(data = gcatlas, type = c("rg", "se", "z", "p"), diag_value)

Arguments

data

The object from which to extract the variable - by default, the full gcatlas object, but a valid subset will work, too

type

The variable to extract, one of rg (default), se z and p

diag_value

An optional value for the diagonal of the matrix; if missing, the function will use a reasonable default, based on the value of type

Value

A square numerical matrix

See Also

gcatlas


alexploner/GeneCorrAtlas documentation built on May 12, 2019, 2:32 a.m.