SingleCellTK’s user interface allows users to save their analysis to local in the following three approaches:

  1. Save the background SingleCellExperiment object to RDS file, which can be used in R and analyzed with SCTK and many other choices of tools.
  2. Save the background data to AnnData object, which is Python based and can be analyzed with scanpy and many other choices of tools.
  3. Save the background data to text files. The count matrices (assays), cell/feature annotation tables, dimension reduction matrices, feature subsets and metadata will be saved separately within a folder.

entry

Users should find these functionality through the way instructed by the screenshot above.

Save to RDS file

RDS

To save the analysis to RDS file, users need to:

  1. Select the path at “Select directory”
  2. Choose the option “Download as RDS file” from the radiobuttons
  3. Specify the file name at the text input “File Name”
  4. Click on “Download” button

Save to AnnData

anndata

The simplest steps to save the analysis to AnnData format is similar as how users save an RDS file. To save the analysis to RDS file, users need to:

  1. Select the path at “Select directory”
  2. Choose the option “Python annData object” from the radiobuttons
  3. Specify the file name at the text input “File Name”
  4. Click on “Download” button

For Python’s AnnData object, there are a few more specifications.

  • Unlike the data structure (SingleCellExperiment) that SCTK adopts, AnnData does not hold multiple assays at the same time. Users will need to make sure which assay should be the main count matrix to use, at the selection input “select assays”.
  • Anndata offers the functionality to compress the saved file, so users can also choose to increase the compression level at the numeric input “Compression Opts”.
  • Usually the specified main matrix will be saved as a sparse matrix, which saves a lot of computation memory. Users can also choose to save it as dense matrix by checking the option “Force Dense”.
  • If “Overwrite” is checked, the exported file will be directly written to the specified path. If it is unchecked, the data will not be exported if a file with the same name and path already exists.

Save to flat files

flat

Similarly,

  1. Select the path at “Select directory”
  2. Choose the option “Flat text files” from the radiobuttons
  3. Specify the file name at the text input “File prefix”
  4. Click on “Download” button

As mentioned at the beginning of the documentation, there will be several files for different information being saved. SCTK will create a directory under the path that users select at the first step, named by “File prefix”, all text files will be stored in this folder.

For additional specifications:

  • If “Gzip Compress” is checked, each of the file will be compressed within the output folder.
  • If “Overwrite” is checked, the exported file will be directly written to the specified path. If it is unchecked, the data will not be exported if a file with the same name and path already exists.