a b/OmicsFold/man/export.matrix.as.network.Rd
1
% Generated by roxygen2: do not edit by hand
2
% Please edit documentation in R/feature_loadings.R
3
\name{export.matrix.as.network}
4
\alias{export.matrix.as.network}
5
\title{Export a covariance matrix as a network CSV file}
6
\usage{
7
export.matrix.as.network(
8
  m,
9
  filename,
10
  cutoff = NA,
11
  block.association = NULL,
12
  block.feature.count = 20
13
)
14
}
15
\arguments{
16
\item{m}{Symmetrical matrix of association scores.}
17
18
\item{filename}{Filename to which to write network output.}
19
20
\item{cutoff}{Optional value of which to filter associations.}
21
22
\item{block.association}{If the matrix does not contain equal number of
23
variables from each block, then a custom list of block associations can be
24
passed in.}
25
26
\item{block.feature.count}{The number of features selected from each block,
27
defaulting to 20.}
28
}
29
\value{
30
The long-form network data that is also written to disk
31
}
32
\description{
33
Export a covariance matrix, e.g. one generated using
34
`find.feature.associations` as data describing the association network and
35
suitable for e.g. loading into Cytoscape. The method can optionally take a
36
cutoff value, which is used to threshold (absolute) association scores. The
37
output is written to disk as a CSV file using the filename given.
38
}
39
\examples{
40
\dontrun{
41
export.matrix.as.network(mat, "network.csv")
42
export.matrix.as.network(find.feature.associations(diablo.trained.analysis, 3), filename="network.csv", cutoff=0.7)
43
}
44
}