aifimmunology / MOCHA

R package for single-cell Open Chromatin Identification & Downstream Analysis
https://aifimmunology.github.io/MOCHA/
GNU General Public License v3.0
2 stars 0 forks source link

Method to share MOCHA Object #112

Closed markphillippebworth closed 5 months ago

markphillippebworth commented 1 year ago

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.

}

markphillippebworth commented 5 months ago

These functions are now apart of MOCHA.