Check to make sure that SampleTileMatrix or TileResults are not null.
Save the above object(s) into the directory specific within the SampleTileMatrix/tileResults object.
Tar/Zip the entire folder. If the outPutDirectory is NULL, then leave it in the same directory as the MOCHA folder. If outPutDirectory is specified, move the tar/zip file to the directory specified.
We need a good way to save a MOCHA object with the associated coverage files.
I would propose a function to do this - perhaps something like 'shareMOCHAObject()', which would:
shareMOCHAObject <- shareMOCHAObject(SampleTileMatrix = NULL, TileResults = NULL, outPutDirectory = NULL){
Check to make sure that SampleTileMatrix or TileResults are not null.
Save the above object(s) into the directory specific within the SampleTileMatrix/tileResults object.
Tar/Zip the entire folder. If the outPutDirectory is NULL, then leave it in the same directory as the MOCHA folder. If outPutDirectory is specified, move the tar/zip file to the directory specified.
}