Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Diverse Cluster Ensemble in R

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
NotificationsYou must be signed in to change notification settings

AlineTalhouk/diceR

Repository files navigation

R-CMD-checkCodecov test coverageCRAN statusCRAN RStudio mirror downloads

Overview

The goal ofdiceR is to provide a systematic framework for generatingdiverse cluster ensembles in R. There are a lot of nuances in clusteranalysis to consider. We provide a process and a suite of functions andtools to implement a systematic framework for cluster discovery, guidingthe user through the generation of a diverse clustering solutions fromdata, ensemble formation, algorithm selection and the arrival at a finalconsensus solution. We have additionally developed visual and analyticalvalidation tools to help with the assessment of the final result. Weimplemented a wrapper functiondice() that allows the user to easilyobtain results and assess them. Thus, the package is accessible to bothend user with limited statistical knowledge. Full access to the packageis available for informaticians and statisticians and the functions areeasily expanded. More details can be found in our companion paperpublished atBMCBioinformatics.

Installation

You can installdiceR from CRAN with:

install.packages("diceR")

Or get the latest development version from GitHub:

# install.packages("devtools")devtools::install_github("AlineTalhouk/diceR")

Example

The following example shows how to use the main function of the package,dice(). A data matrixhgsc contains a subset of gene expressionmeasurements of High Grade Serous Carcinoma Ovarian cancer patients fromthe Cancer Genome Atlas publicly available datasets. Samples as rows,features as columns. The function below runs the package through thedice() function. We specify (a range of)nk clusters overrepssubsamples of the data containing 80% of the full samples. We alsospecify the clusteringalgorithms to be used and the ensemblefunctions used to aggregated them incons.funs.

library(diceR)data(hgsc)obj<- dice(hgsc,nk=4,reps=5,algorithms= c("hc","diana"),cons.funs= c("kmodes","majority"),progress=FALSE,verbose=FALSE)

The first few cluster assignments are shown below:

knitr::kable(head(obj$clusters))
kmodesmajority
TCGA.04.1331_PRO.C522
TCGA.04.1332_MES.C122
TCGA.04.1336_DIF.C442
TCGA.04.1337_MES.C122
TCGA.04.1338_MES.C122
TCGA.04.1341_PRO.C522

You can also compare the basealgorithms with thecons.funs usinginternal evaluation indices:

knitr::kable(obj$indices$ii$`4`)
Algorithmscalinski_harabaszdunnpbmtaugammac_indexdavies_bouldinmcclain_raosd_disray_turig_plussilhouettes_dbwCompactnessConnectivity
HC_EuclideanHC_Euclidean3.1041060.260854759.7371100.42857140.28440731.8391820.80091490.13060621.47656650NaNNaN24.8322541.62183
DIANA_EuclideanDIANA_Euclidean53.6474000.334810333.878170-1.87500000.15894422.8242010.80519150.21192813.297898600.0692233NaN21.93396241.66310
kmodeskmodes55.1386000.339690950.517220-0.68224300.14535992.0067520.79729990.11708291.140825800.1253664NaN21.91494201.42540
majoritymajority19.3732480.354437185.051730-1.16513760.21024871.6227990.80194530.11086740.920051100.1884934NaN23.8540864.04921

Pipeline

This figure is a visual schematic of the pipeline thatdice()implements.

Ensemble Clustering pipeline.

Ensemble Clusteringpipeline.

Please visit theoverviewpage for more detail.

About

Diverse Cluster Ensemble in R

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Packages

No packages published

Contributors3

  •  
  •  
  •  

Languages


[8]ページ先頭

©2009-2025 Movatter.jp