Learn R Programming

kangar00 (version 1.4.2)

net.kernel.hsa04020: Example network-based kernel matrix for pathway hsa04020.

Description

An example of a kernel object.

Usage

data(net.kernel.hsa04020)

Arguments

Format

An object of class kernel and type 'network' for the pathway hsa04020.

type

specifies which kernel function was used to calculate the kernel

kernel

includes the kernel matrix calculated for the pathway

pathway

includes the pathway object of the pathway, for which the kernel matrix was calculated

Examples

Run this code
data(net.kernel.hsa04020)
# derivation 
data(gwas)
data(hsa04020)
net_kernel <- calc_kernel(gwas, hsa04020, knots=NULL, type='net', calculation='cpu')
# are the value differences smaller than machine epsilon?
all(abs(net.kernel.hsa04020@kernel - net_kernel@kernel) < sqrt(.Machine$double.eps))

Run the code above in your browser using DataLab