This function executes a ubuntu docker that merge two clusters

clusterReorg(
  group = c("sudo", "docker"),
  scratch.folder,
  file,
  nCluster,
  A,
  B,
  separator,
  sp = 0.8
)

Arguments

group,

a character string. Two options: sudo or docker, depending to which group the user belongs

scratch.folder,

a character string indicating the path of the scratch folder

file,

a character string indicating the path of the file, with file name and extension included

nCluster,

number of Cluster used in Kmeans to generate the clusters that you want to merge

A,

first Cluster that has to be merged

B,

second Cluster that has to be merged

separator,

separator used in count file, e.g. '\t', ','

sp,

minimun number of percentage of cells that has to be in common between two permutation to be the same cluster.

Value

will change all the files generated from permAnalysis algorithm in a new folder matrixName_Cluster_merged/

Author

Luca Alessandri , alessandri [dot] luca1991 [at] gmail [dot] com, University of Torino

Examples

if (FALSE) {
clusterReorg("docker","/home/lucastormreig/CASC2.0/2.1_clusterReorg/scratch/","/home/lucastormreig/CASC2.0/2.1_clusterReorg/Data/TOTAL.csv",3,1,3,",")#
}