sigmod_ | R Documentation |
Finds the features maximally associated with a phenotype while being connected in an underlying network.
sigmod_(X, y, featnames, net, eta, lambda)
X |
n x d design matrix |
y |
Vector of length n with the outcomes |
featnames |
Vector of length d with the feature names |
net |
An igraph network that connects the SNPs. |
eta |
Value of the eta parameter. |
lambda |
Value of the lambda parameter. |
A copy of the SnpMatrix$map
data.frame
, with the
following additions:
c: contains the univariate association score for every single SNP.
selected: logical vector indicating if the SNP was selected by SConES or not.
module: integer with the number of the module the SNP belongs to.
X <- as(minigwas[['genotypes']], 'numeric')
X <- X + matrix(rnorm(2500, sd = 0.1), nrow(X), ncol(X))
gi <- get_GI_network(minigwas, snpMapping = minisnpMapping, ppi = minippi)
sigmod_(X, minigwas[['fam']]$affected, minigwas[['map']]$snp, gi, 10, 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.