Permalink
Cannot retrieve contributors at this time
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?
DPM/man/kmeans_links.Rd
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
35 lines (30 sloc)
1013 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% 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 | |
} |