# Is there a way to incorporate Ultrafast bootstrap in the pipeline?

**URL:** <https://nextstrain.discourse.group/t/is-there-a-way-to-incorporate-ultrafast-bootstrap-in-the-pipeline/404>\
**Category:** Uncategorized\
**Created:** [March 8, 2021, 1:03pm UTC](https://nextstrain.discourse.group/t/is-there-a-way-to-incorporate-ultrafast-bootstrap-in-the-pipeline/404 "2021-03-08T13:03:48Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![fhsantanna](https://avatars.discourse-cdn.com/v4/letter/f/f19dbf/32.png) [@fhsantanna](https://nextstrain.discourse.group/u/fhsantanna)\
**Post date:** [March 8, 2021, 1:03pm UTC](https://nextstrain.discourse.group/t/is-there-a-way-to-incorporate-ultrafast-bootstrap-in-the-pipeline/404/1 "2021-03-08T13:03:48Z")

</div>

I wanna use the nextstrain pipeline for describing novel pangolin sublineages within a specific lineage.  
Is there a way to incorporate ultrafast bootstrap in the pipeline?  
Should I just modify the line “tree-builder-args” of parameters.yaml?

---

<div class="post-metadata">

**Author:** ![jlhudd](https://yyz1.discourse-cdn.com/flex031/user_avatar/nextstrain.discourse.group/jlhudd/32/583_2.png) [@jlhudd](https://nextstrain.discourse.group/u/jlhudd)\
**Post date:** [March 9, 2021, 9:27pm UTC](https://nextstrain.discourse.group/t/is-there-a-way-to-incorporate-ultrafast-bootstrap-in-the-pipeline/404/2 "2021-03-09T21:27:51Z")

</div>

Hi @fhsantanna, yes, you can specify most IQ-TREE parameters like you through the `--tree-builder-args` argument of `augur tree`. Some IQ-TREE parameters are hardcoded in `augur tree`, though, so you may get an error if you try to override those default parameters. Here is an example of how `augur tree` runs IQ-TREE for [the Zika tutorial](https://github.com/nextstrain/zika-tutorial).

```auto
iqtree -ninit 2 -n 2 -me 0.05 -nt 1 -s results/aligned-delim.fasta -m GTR

```

---

<div class="post-metadata">

**Author:** ![fhsantanna](https://avatars.discourse-cdn.com/v4/letter/f/f19dbf/32.png) [@fhsantanna](https://nextstrain.discourse.group/u/fhsantanna)\
**Post date:** [March 11, 2021, 1:29pm UTC](https://nextstrain.discourse.group/t/is-there-a-way-to-incorporate-ultrafast-bootstrap-in-the-pipeline/404/3 "2021-03-11T13:29:49Z")

</div>

In fact, I got an error.

> ERROR: Shell exited 2 when running: iqtree -ninit 2 -n 2 -me 0.05 -nt 8 -s results/novel\_vinte\_oito/aligned-delim.fasta -m GTR -B 1000 \> results/novel\_vinte\_oito/aligned-delim.iqtree.log  
> Command output was:  
> Ultrafast bootstrap does not work with -fast, -te or -n option

---

<div class="post-metadata">

**Author:** ![jlhudd](https://yyz1.discourse-cdn.com/flex031/user_avatar/nextstrain.discourse.group/jlhudd/32/583_2.png) [@jlhudd](https://nextstrain.discourse.group/u/jlhudd)\
**Post date:** [March 11, 2021, 6:27pm UTC](https://nextstrain.discourse.group/t/is-there-a-way-to-incorporate-ultrafast-bootstrap-in-the-pipeline/404/4 "2021-03-11T18:27:05Z")

</div>

Darn, I’m sorry that didn’t work out! The best next step would be to replace `augur tree` in your workflow with a direct call to `iqtree` and the parameters you’d like to use. Since augur’s tree command is mostly a light wrapper around each tree builder anyway, you might be able to get away with dropping in the `iqtree` command directly. Worst case, you may need to add some equivalent pre- and post-processing steps to your workflow to replicate what augur does.

In the longer term, we’ll need to discuss as a team about a better way to enable overriding the default arguments with the `--tree-builder-args` command. This is something we’ve discussed before for the `augur align` step, too.

---

<div class="post-metadata">

**Author:** ![fhsantanna](https://avatars.discourse-cdn.com/v4/letter/f/f19dbf/32.png) [@fhsantanna](https://nextstrain.discourse.group/u/fhsantanna)\
**Post date:** [March 15, 2021, 4:43pm UTC](https://nextstrain.discourse.group/t/is-there-a-way-to-incorporate-ultrafast-bootstrap-in-the-pipeline/404/5 "2021-03-15T16:43:12Z")

</div>

Thanks. It’s ok. As you recommended, I built a tree using iqtree directly.

---

<div class="post-metadata">

**Author:** ![mattoslmp](https://yyz1.discourse-cdn.com/flex031/user_avatar/nextstrain.discourse.group/mattoslmp/32/229_2.png) [@mattoslmp](https://nextstrain.discourse.group/u/mattoslmp)\
**Post date:** [August 15, 2021, 1:04am UTC](https://nextstrain.discourse.group/t/is-there-a-way-to-incorporate-ultrafast-bootstrap-in-the-pipeline/404/6 "2021-08-15T01:04:00Z")

</div>

Dear @jlhudd ,  
How to infer the confidence of clades in the nextstrain tree? There is already some way to generate a tree with the nextstrain containing the boostrap values? If not which output can I use in iqtree?  
I didn’t find the align-delim.fasta output in my nextstrain results. My nextstrain result did not generate this file no directory results. Although I got the final results in the auspice directory, with success.  
The files with the closest names are:  
aligned-delim.fasta.log, aligned.fasta.  
I would like to build a tree in nextstrain or iqtree containing the clades names (alpha, beta, gamma, etc), time and bootstrap.  
That’s why I asked about the aligned-delim.fasta file, I believe I need this one to generate a booststrap tree.  
Thanks for your attention,  
Best,  
Leandro
