Diff of /man/get_grn.Rd [000000] .. [73f552]

Switch to unified view

a b/man/get_grn.Rd
1
% Generated by roxygen2: do not edit by hand
2
% Please edit documentation in R/get_grn.R
3
\name{get_grn}
4
\alias{get_grn}
5
\title{Gene Regulatory Network}
6
\usage{
7
get_grn(X, cluster = NULL, method = c("aracne"), type = "gene")
8
}
9
\arguments{
10
\item{X}{a \code{data.frame}/\code{matrix} with gene expression
11
(genes in columns, samples in rows).}
12
13
\item{cluster}{(optional) clustering result from
14
\code{\link[timeOmics]{getCluster}}}
15
16
\item{method}{network building method, one of c('aracne')}
17
18
\item{type}{character added to node metadata}
19
}
20
\value{
21
An igraph object if no cluster informations are given.
22
Otherwise, it returns a list of igraph object (\code{list.igraph}) with
23
a subgraph for each cluster and a global graph with all the genes.
24
}
25
\description{
26
Get Gene Regulatory Network (GRN) from a data.frame.
27
Optionally, if the gene are clustered, sub_network are build for
28
each cluster.
29
}
30
\details{
31
Methods of GRN reconstruction are as follows:
32
'aracne': use ARACNe algorithm on Mutual Information (MI) adjency matrix
33
to remove low MI edges in triangles.
34
}
35
\examples{
36
data(hmp_T2D)
37
# grn only on gene
38
cluster.mRNA <- timeOmics::getCluster(hmp_T2D$getCluster.res, 
39
                                      user.block = 'RNA')
40
X <- hmp_T2D$raw$RNA
41
grn.res <- get_grn(X = hmp_T2D$raw$RNA, 
42
                   cluster = cluster.mRNA, 
43
                   method = 'aracne')
44
45
46
}
47
\seealso{
48
\code{\link[minet]{build.mim}},
49
\code{\link[minet]{aracne}},
50
\code{\link[timeOmics]{getCluster}}
51
}