# Building custom nextclade dataset norovirus

**URL:** <https://nextstrain.discourse.group/t/building-custom-nextclade-dataset-norovirus/2000>\
**Category:** Help and Getting Started\
**Created:** [October 14, 2025, 3:20pm UTC](https://nextstrain.discourse.group/t/building-custom-nextclade-dataset-norovirus/2000 "2025-10-14T15:20:09Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![qianlw](https://avatars.discourse-cdn.com/v4/letter/q/67e7ee/32.png) [@qianlw](https://nextstrain.discourse.group/u/qianlw)\
**Post date:** [October 14, 2025, 3:20pm UTC](https://nextstrain.discourse.group/t/building-custom-nextclade-dataset-norovirus/2000/1 "2025-10-14T15:20:09Z")

</div>

I tried build custom dataset norovirus following the tutorials from [https://github.com/nextstrain/nextclade\_data/blob/master/docs/dataset-creation-guide.md](https://github.com/nextstrain/nextclade_data/blob/master/docs/dataset-creation-guide.md)., when creating a reference tree using [Snakefile](https://github.com/nextstrain/nextclade_data/blob/master/docs/example-workflow/Snakefile), not just described “The workflow can be configured to work with viruses other than Zika by changing the constants (in particular `REFERENCE_ACCESSION`, `TAXON_ID`, and `GENES`) at the top of the Snakefile.“ The **resources/refrence.gb** file also needs to be modified here because I found that the GB file I downloaded from NCBI is not working directly.

So could you guys tell me how to modify this GB file correctly?

---

<div class="post-metadata">

**Author:** ![quietjen](https://yyz1.discourse-cdn.com/flex031/user_avatar/nextstrain.discourse.group/quietjen/32/713_2.png) [@quietjen](https://nextstrain.discourse.group/u/quietjen)\
**Post date:** [October 14, 2025, 6:36pm UTC](https://nextstrain.discourse.group/t/building-custom-nextclade-dataset-norovirus/2000/2 "2025-10-14T18:36:00Z")

</div>

Welcome qianlw!

I need to take a closer look at the [dataset-creation-guide.md](https://github.com/nextstrain/nextclade_data/blob/master/docs/dataset-creation-guide.md) documentation, but I do have some configuration files for a Norovirus Nextclade dataset — including `reference.gb` files, which you can find here:

- [norovirus/nextclade/defaults/VP1/reference.gb at main · nextstrain/norovirus · GitHub](https://github.com/nextstrain/norovirus/blob/main/nextclade/defaults/VP1/reference.gb)

The key thing about Norovirus is that it uses a dual-gene typing system based on the VP1 and RdRp regions, so the **resources/reference.gb** needs to be trimmed to cover one or the other gene region for each Nextclade dataset. Hopefully these files are helpful, or let us know what errors you’re running into.

---

<div class="post-metadata">

**Author:** ![rneher](https://yyz1.discourse-cdn.com/flex031/user_avatar/nextstrain.discourse.group/rneher/32/20_2.png) [@rneher](https://nextstrain.discourse.group/u/rneher)\
**Post date:** [October 15, 2025, 7:43am UTC](https://nextstrain.discourse.group/t/building-custom-nextclade-dataset-norovirus/2000/3 "2025-10-15T07:43:40Z")

</div>

Hello @qianlw

I suggest trying to run the script

> <https://github.com/nextstrain/nextclade_data/blob/master/docs/example-workflow/scripts/generate_from_genbank.py>

to generate Nextclade compliant gb, gff3, and fasta files. You provide an accession of an annotated reference on genbank, and the script will prompt you with a few questions, and then hopefully output a working annotation.

---

<div class="post-metadata">

**Author:** ![qianlw](https://avatars.discourse-cdn.com/v4/letter/q/67e7ee/32.png) [@qianlw](https://nextstrain.discourse.group/u/qianlw)\
**Post date:** [October 16, 2025, 1:14pm UTC](https://nextstrain.discourse.group/t/building-custom-nextclade-dataset-norovirus/2000/4 "2025-10-16T13:14:01Z")

</div>

Thanks.  
I read your files in [norovirus/nextclade/defaults/VP1/reference.gb at main · nextstrain/norovirus · GitHub](https://github.com/nextstrain/norovirus/blob/main/nextclade/defaults/VP1/reference.gb) , why there is not tree.json?

---

<div class="post-metadata">

**Author:** ![qianlw](https://avatars.discourse-cdn.com/v4/letter/q/67e7ee/32.png) [@qianlw](https://nextstrain.discourse.group/u/qianlw)\
**Post date:** [October 16, 2025, 1:27pm UTC](https://nextstrain.discourse.group/t/building-custom-nextclade-dataset-norovirus/2000/5 "2025-10-16T13:27:53Z")

</div>

Thank you very much. I got the desired files Nextclade compliant gb, gff3, and fasta files for norovirus by running that scripts. But I got tree.json file like this through the command `nextstrain build . test. `

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/nextstrain/original/1X/93a290a8f310c9e96bc9b7359c9e289fc148428f.png)

I am not sure, maybe there are some problems about the file `pathogen.json`. Because I used the value of schema same as Zika virus in example. I didn’t modify the value of schema.

---

<div class="post-metadata">

**Author:** ![quietjen](https://yyz1.discourse-cdn.com/flex031/user_avatar/nextstrain.discourse.group/quietjen/32/713_2.png) [@quietjen](https://nextstrain.discourse.group/u/quietjen)\
**Post date:** [October 16, 2025, 8:32pm UTC](https://nextstrain.discourse.group/t/building-custom-nextclade-dataset-norovirus/2000/6 "2025-10-16T20:32:02Z")

</div>

The tree.json files for VP1 and RdRp are located in the [nextclade\_data](https://github.com/nextstrain/norovirus/tree/main/nextclade_data/VP1) folder. We separate the Nextclade workflow for generating the `tree.json` and dataset (`nextclade`) from our draft Nextclade dataset (`nextclade_data`, which contains tree.json)

---

<div class="post-metadata">

**Author:** ![quietjen](https://yyz1.discourse-cdn.com/flex031/user_avatar/nextstrain.discourse.group/quietjen/32/713_2.png) [@quietjen](https://nextstrain.discourse.group/u/quietjen)\
**Post date:** [October 16, 2025, 8:36pm UTC](https://nextstrain.discourse.group/t/building-custom-nextclade-dataset-norovirus/2000/7 "2025-10-16T20:36:25Z")

</div>

Just checking, but did you want to change the title of the tree.json? From the example workflow, can adjust it in the `example-workflow/resources/auspice_config.json`

- [nextclade\_data/docs/example-workflow/resources/auspice\_config.json at 7e13a944ba53cd27b037c8ab3e51b691fda13a70 · nextstrain/nextclade\_data · GitHub](https://github.com/nextstrain/nextclade_data/blob/7e13a944ba53cd27b037c8ab3e51b691fda13a70/docs/example-workflow/resources/auspice_config.json#L2)

Ah, but if you mean to adjust the nextclade alignment parameters for norovirus, yes that would be in `pathogen.json`

---

<div class="post-metadata">

**Author:** ![qianlw](https://avatars.discourse-cdn.com/v4/letter/q/67e7ee/32.png) [@qianlw](https://nextstrain.discourse.group/u/qianlw)\
**Post date:** [October 17, 2025, 4:46pm UTC](https://nextstrain.discourse.group/t/building-custom-nextclade-dataset-norovirus/2000/8 "2025-10-17T16:46:16Z")

</div>

Thank you for your replying. I still have a question, how to verify custom nextclade dataset?
