> For the complete documentation index, see [llms.txt](https://michael-vinyard.gitbook.io/anndataquery/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://michael-vinyard.gitbook.io/anndataquery/reference/api-reference.md).

# API Reference

Description of functions and the classes on which they are built

## Functions

Functional wrappers of the classes below. These are the main tools of the API.

<details>

<summary><a href="/anndataquery/reference/api-reference/fetch.md"><mark style="color:blue;"><code>adata_query.fetch</code></mark></a></summary>

```python
data = fetch(
    adata: anndata.AnnData,
    key: str,
    groupby: Optional[str] = None,
    torch: bool = False,
    device: torch.device = autodevice.AutoDevice(),
    *args,
    **kwargs,
)
```

</details>

<details>

<summary><a href="/anndataquery/reference/api-reference/format_data.md"><mark style="color:blue;"><code>adata_query.format_data</code></mark></a></summary>

```python
data = format_data(
    data: Union[np.ndarray, torch.Tensor],
    torch: bool = False,
    device: torch.device = autodevice.AutoDevice(),
    *args,
    **kwargs,
)
```

</details>

<details>

<summary><a href="/anndataquery/reference/api-reference/locate.md"><mark style="color:blue;"><code>adata_query.locate</code></mark></a></summary>

```python
attr_key = adata_query.locate(adata: anndata.AnnData, key: str)
```

</details>

{% hint style="info" %}
Expand each function for a quick view. Click on the function titles for full documentation.
{% endhint %}

## Classes

Everything related to the operational classes:

{% content-ref url="/pages/BRgkgPjpoqDvPwBNKYIC" %}
[AnnDataFetcher](/anndataquery/reference/api-reference/fetch/anndatafetcher.md)
{% endcontent-ref %}

{% content-ref url="/pages/p6YSenj9mjz4SKAv0S2z" %}
[DataFormatter](/anndataquery/reference/api-reference/format_data/dataformatter.md)
{% endcontent-ref %}

{% content-ref url="/pages/Rm3F6VqbHS6JSPhHx5hf" %}
[AnnDataLocator](/anndataquery/reference/api-reference/locate/anndatalocator.md)
{% endcontent-ref %}
