mergeMatrix.Rd
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"
)
a character string. Two options: sudo or docker, depending to which group the user belongs
a character string indicating the path of the scratch folder
a character string indicating the path of the first matrix to be merged, with file name and extension included
a character string indicating the path of the second matrix to be merged, with file name and extension included
separator used in count file, e.g. '\t', ','
separator used in count file, e.g. '\t', ','
the name that will be the prefix in the header of the matrix1 cells , null will not add any prefix
the name that will be the prefix in the header of the matrix2 cells , null will not add any prefix
a merged matrix
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")
}