View source: R/cluster.pathways.R
cluster.pathways | R Documentation |
Cluster pathways according to a time dependent or independent scheme
cluster.pathways(
SOM,
start,
end,
time.dep = "independent",
method = "complete"
)
SOM |
a kohonen SOM object. |
start |
the vector specifying the starting frame of each replicas |
end |
the vector specifying the ending frame of each replicas |
time.dep |
choose whether to use time "dependent" or "independent" clustering of pathways |
method |
the method to be passed to hclust for the clustering |
representatives a vector of frames representatives of each neuron
Stefano Mottastefano.motta@unimib.it
#Read trajectory
trj <- read.trj(trjfile = system.file("extdata", "HIF2a-MD.xtc", package = "SOMMD"),
topfile = system.file("extdata", "HIF2a.gro", package = "SOMMD"))
#Assign length of the replicas
trj$start <- seq(1, 25, by=5)
trj$end <- seq(5, 25, by=5)
#Read example SOM data
som_model <- readRDS(system.file("extdata", "SOM_HIFa.rds", package = "SOMMD"))
#Cluster Pathways using the time dependent algorithm
clus.paths.tdep <- cluster.pathways(som_model, start=trj$start, end=trj$end,
time.dep="dependent")
#Cluster Pathways using the time independent algorithm
clus.paths.tindep <- cluster.pathways(som_model,
start=trj$start, end=trj$end, time.dep="independent")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.