CountingSamples | R Documentation |
Counts for each combination of cluster and feature the number of samples and their name are returned.
CountingSamples(clusterdata, feature = "ID")
clusterdata |
The list obtained from extrapolating the most probable clustering from the StabilityAnalysis function output. (see |
feature |
The column name reported in the AnnotationFile containing the feature to be investigated. |
CountingSample returns a list containing 1) a matrix composed by three columns: (i) cluster, (ii) the feature name, and (iii) the number of samples, and 2) a dataframe storing the sample names reported in the AnnotationFile and the corresponding cluster membership.
Cordero Francesca, Pernice Simone, Sirovich Roberta
### Data files
GrowDataFile<-"data/1864dataset.xls"
AnnotationFile <-"data/1864info.txt"
### Merge curves and target file
CONNECTORList <- DataImport(GrowDataFile,AnnotationFile)
### Truncation
CONNECTORList<- DataTruncation(CONNECTORList,feature="Progeny",60,labels = c("time","volume","Tumor Growth"))
CONNECTORList.FCM <- ClusterChoice(CONNECTORList,k=c(2:6),h=2)
CONNECTORList.FCM.k4.h2<- CONNECTORList.FCM$FCM_all$`k= 4`$`h= 2`
NumberSamples<-CountingSamples(clusterdata=CONNECTORList.FCM.k4.h2,CONNECTORList,feature = "Progeny")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.