Skip to content
Permalink
4077cc3076
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
35 lines (30 sloc) 1013 Bytes
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/kmeans_links.R
\name{kmeans_links}
\alias{kmeans_links}
\title{Function to apply kmeans clustering on the score of links}
\usage{
kmeans_links(score_matrix)
}
\arguments{
\item{score_matrix}{score matrix obtained from DPM or reg.DPM.}
}
\value{
a list containing
- the list of the links as a data frame. Each line of the data frame corresponds to a link.
The first and second columns are the corresponding nodes of the link and the third column is the score of the link.
- the threshold that all the links with scores more than it are considered as an edge.
}
\description{
Function to apply kmeans clustering on the score of links
}
\examples{
## Load DREAM4 data (insilico_size10_1_knockouts)
data(dream4)
## Run regularized DPM
res <- reg.dpm(data)
## Get the list of the links based on kmeans clustering
linklist <- kmeans_links(res)$LinkList
##Get the threshold at significance level alpha=0.05
kmeans_links(res)$threshold
}