sparkx.sksg: Testing for single gene with each kernel with non-parametric...

View source: R/sparkx.R

sparkx.sksgR Documentation

Testing for single gene with each kernel with non-parametric framework

Description

Testing for single gene with each kernel with non-parametric framework

Usage

sparkx.sksg(
  igene,
  expmat,
  xmat,
  scaleinfo,
  numDim,
  lambda_K,
  loc_inv,
  verbose = TRUE
)

Arguments

igene:

A gene index

expmat:

A n x p gene expression matrix (sparseMatrix)

xmat:

A n x c covariate matrix

scaleinfo:

A n x d matrix with centered coordinates

numDim:

A integer, the number of dimension of coordinates

lambda_K:

A d-vector of eigen values of kernel being tested

loc_inv:

A d x d matrix, the inverse of the inner product of the location matrix

verbose:

A boolean value whether to print details, for debug purpose

Value

A vector with a test statistic and p value


xzhoulab/SPARK documentation built on Nov. 20, 2022, 2:54 p.m.