# Conversion

When download single cell or spatial matrix data, because of the size of the data, Connected Multiomics needs to first convert the files in the data node to a different file format, then transfer to your local computer.

Click on a count data node or normalized count data node, there are two options in conversion section:

<div align="left"><figure><img src="https://580316046-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWMxqQAMFOJtu98OBk9KN%2Fuploads%2Fgit-blob-ec5ddd592241d9325786b2aebec4b8db24888fb1%2Fimage%20(359).png?alt=media" alt="" width="192"><figcaption></figcaption></figure></div>

#### Export to h5ad files:

This option allows to export cell by feature matrix with other annotation of the cells, like PCA, UMAP, t-SNE coordinates of the cells and cluster annotation if they are performed in the analysis:

<div align="left"><figure><img src="https://580316046-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWMxqQAMFOJtu98OBk9KN%2Fuploads%2Fgit-blob-2c6015e9ef9f6990ffae1b995ab37f7fa0018123%2Fimage%20(360).png?alt=media" alt="" width="277"><figcaption></figcaption></figure></div>

Click on each of the **Select data node** to choose the node in the analysis pipeline, you can select only one of the same annotation type if performed multiple times of the same task, e.g. you perform graph-based cluster task multiple times with different parameter, you can only choose one to export.

After click **Finish**, you will see a new data node generated, click on the node, you can download the file:

![](https://580316046-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWMxqQAMFOJtu98OBk9KN%2Fuploads%2Fgit-blob-d2d7deca1f8c548a935202ce541d5d549a233c5c%2Fimage%20\(362\).png?alt=media)

#### Export matrix

This option allows you to export a text file of the full matrix or sparse matrix in 10X CellRanger .h5 format:

<div align="left"><figure><img src="https://580316046-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWMxqQAMFOJtu98OBk9KN%2Fuploads%2Fgit-blob-a79d07015d2ac9998e5396202d834c00c4667a37%2Fimage%20(361).png?alt=media" alt="" width="209"><figcaption></figcaption></figure></div>

When export the full matrix in .txt file, you can choose features on columns or rows. You can choose to export annotation and/counts in the matrix by check the boxes in the *Include content* section. Only one level of annotation can be exported depends who is on row in the text file: if you choose **features on columns** option, cells will be on rows, then only cell annotation will be exported; if you choose f**eatures on rows**, then only feature annotation will be exported.

If you have multiple samples in the analysis, check **Combine samples** will generate one text file with all the cells from all the samples. If you don't check the box, you will generate one text file for each sample individually.
