CountingSamples: Counting samples

View source: R/counting.R

CountingSamplesR Documentation

Counting samples

Description

Counts for each combination of cluster and feature the number of samples and their name are returned.

Usage

CountingSamples(clusterdata, feature = "ID")

Arguments

clusterdata

The list obtained from extrapolating the most probable clustering from the StabilityAnalysis function output. (see StabilityAnalysis and MostProbableClustering.Extrapolation).

feature

The column name reported in the AnnotationFile containing the feature to be investigated.

Value

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.

Author(s)

Cordero Francesca, Pernice Simone, Sirovich Roberta

Examples


### 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")

sysbioTurin/connector documentation built on April 9, 2024, 12:10 p.m.