> For the complete documentation index, see [llms.txt](https://mysite.gitbook.io/sdas_manual_cn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mysite.gitbook.io/sdas_manual_cn/readme/04_manual/cell_annotation/02_input.md).

# h5ad数据格式说明

## 输入h5ad格式说明

* `st.h5ad`：空间转录组表达矩阵AnnData对象，要求包含**原始表达矩阵**、**基因名**、**空间坐标**等信息。具体请参考[SDAS输入数据格式描述](/sdas_manual_cn/readme/04_manual/sdas_input.md)。**多片**空转数据可以提供自定义的slice\_key，默认为'sampleID'，用于画图 (在cell2location中也用于提供批次信息)。如果不提供，则当做单片处理。
* `sc.h5ad`：单细胞表达矩阵AnnData对象，要求包含**原始表达矩阵**、**基因名**等信息。具体请参考[SDAS输入数据格式描述](/sdas_manual_cn/readme/04_manual/sdas_input.md)。同时单细胞obs中要有**注释**信息，存在自定义的label\_key中; **RCTD算法不支持注释信息有‘/’的情况。**
* **SCimilarity算法只适用于人类样本。**

## 输出h5ad格式说明

* 输入h5ad+注释结果：每个细胞类型的分数存在`obsm['anno_score_<algorithm_name>']`中，分数最高的类型存在`obs['anno_<algorithm_name>']`中。算法的其他输出结果和中间文件没有保存。
* 未被注释的细胞的类型统一为NA。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mysite.gitbook.io/sdas_manual_cn/readme/04_manual/cell_annotation/02_input.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
