> For the complete documentation index, see [llms.txt](https://help.dragen.illumina.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.dragen.illumina.com/dragen-v4.6/product-guides/dragen-v4.6/dragen-16s-pipeline/dragen-16s-custom-db.md). Agents can also search and read this documentation through its [MCP server](https://help.dragen.illumina.com/~gitbook/mcp).

# 16S Custom Database

Instead of using the pre-built 16S database, a set of user-defined reference sequences can be provided to the pipeline. It will use those sequences to build a temporary database and run the analysis.

The reference sequences should be provided as a FASTA file. It can contain up to 10 billion basepairs of reference sequences, and must be specified using the exact FASTA header format defined below. In the FASTA file, the SequenceID should not contain any spaces. The SequenceID is followed by a colon and the taxonomy associated with the reference sequence. There should be one and only one colon per header line to separate the sequence ID and the taxonomy string. The taxonomy must have seven canonical taxonomic rank prefixes specified: k\_\_;p\_\_;c\_\_;o\_\_;f\_\_;g\_\_;s\_\_. However these can all be left blank except for (k)ingdom and (s)pecies designations, which are required.

Here is an example of a FASTA header that is well-formed:

```
>SequenceID_001:k__Fungi;p__Glomeromycota;c__Glomeromycetes;o__Glomerales;f__Glomeraceae;g__;s__uncultured_Glomus
```

The FASTA file is used with the command line argument `--16s-custom-references`.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.dragen.illumina.com/dragen-v4.6/product-guides/dragen-v4.6/dragen-16s-pipeline/dragen-16s-custom-db.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
