This function executes a ubuntu docker that merge two matrix

mergeMatrix(
  group = c("sudo", "docker"),
  scratch.folder,
  file1,
  file2,
  separator1,
  separator2,
  name1 = "NULL",
  name2 = "NULL"
)

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

file1,

a character string indicating the path of the first matrix to be merged, with file name and extension included

file2,

a character string indicating the path of the second matrix to be merged, with file name and extension included

separator1,

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

separator2,

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

name1,

the name that will be the prefix in the header of the matrix1 cells , null will not add any prefix

name2,

the name that will be the prefix in the header of the matrix2 cells , null will not add any prefix

Value

a merged matrix

Author

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

Examples

if (FALSE) {
system("wget http://130.192.119.59/public/annotated_setPace_10000_noC5.txt.zip")
unzip("annotated_setPace_10000_noC5.txt.zip")
subSetCell(group="docker", scratch.folder="/data/scratch", 
           file=paste(getwd(), "annotated_setPace_10000_noC5.txt",sep="/"), 
           separator="\t", cells.number=200)
mergeMatrix(group="docker", scratch.folder="/data/scratch", 
            file1=paste(getwd(),"annotated_setPace_10000_noC5.txt", sep="/"),
            file2=paste(getwd(),"subset_200_annotated_setPace_10000_noC5.txt", sep="/"), 
            separator1="\t",separator2="\t",name1="test1",name2="test2")
}