# ghost-tree index out of range error

**URL:** https://forum.qiime2.org/t/ghost-tree-index-out-of-range-error/13275
**Category:** Other Bioinformatics Tools
**Tags:** ghost-tree
**Created:** [January 20, 2020, 10:02am UTC](https://forum.qiime2.org/t/ghost-tree-index-out-of-range-error/13275 "2020-01-20T10:02:16Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![Jennifer\_Fouquier](https://forum.qiime2.org/user_avatar/forum.qiime2.org/jennifer_fouquier/32/519_2.png) [@Jennifer\_Fouquier](https://forum.qiime2.org/u/Jennifer_Fouquier)
#### Post date: [January 24, 2020, 2:06pm UTC](https://forum.qiime2.org/t/ghost-tree-index-out-of-range-error/13275/4 "2020-01-24T14:06:46Z")

</div>

Hi Irene! Welcome to the QIIME2 forum and community. 👋 Sorry this took so long, my week has been a little crazy. 🙂 Thank you so much for always providing such clear and detailed help requests! Posting on the forum is great because other users can get help. The formatting here is better, too!

After looking at the files that I have from you in my email, It looks like you are providing a taxonomy line like this 'OTU\_207 k\_\_Fungi;p\_\_Basidiomycota;c\_\_Agaricomycetes;o\_\_Agaricales;f\_\_Amanitaceae' in your extension tree taxonomy file which does not go down to genus and species. Normally, the taxonomy file would have g\_\_unclassified;s\_\_unclassified or g\_\_unidentified;s\_\_unidentified or something along those lines as placeholders so that a lot of the microbiome bioinformatics tools see things as consistent. This is a "standard", as you can imagine consistency is easier to work with in computer programming. You will need to repair your taxonomy file to have ';g\_\_unclassified;s\_\_unclassified' on all the lines just as placeholders. You can find `concatenate` functions in Excel to add this string to each line or do this in Python. I'm not sure your computational level, so if you cannot do this or find help in your lab, let me know.

Now, normally _ghost-tree_ uses genera to make smaller groups of related fungi, but since you do not have genera (they're all unclassified), you will have to do a custom tree. I added this feature: [Options for plugin inputs/arguments (ghost-tree progress)](https://forum.qiime2.org/t/options-for-plugin-inputs-arguments-ghost-tree-progress/3862) a while back but I have not tested it too much besides on smaller trees. You don't need to read the details, but you can see the cool images showing how the graft level option/flag creates trees at different taxonomic groupings. When you're in command line, type `--help` after your ghost-tree command, then you will see the option to graft at a higher level. So you will do `--graft-level f` in your case.

 ![Screen Shot 2020-01-24 at 7.09.21 AM](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/2X/b/b1785832be36e5898871a7eb9670171176272a5c.png)  
 ![Screen Shot 2018-04-19 at 9.35.51 PM](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/2X/6/697bf1977216d34d595c76e40b063aac7df1b8df.png)  
Luckily your tree will be fairly small, so make sure to open in a tree viewer and make sure the groups make sense to you after you create your custom tree. OTUs in the same family should be grouped together, of course! 😅. If they aren't let me know. I would also try to compare your diversity analysis results if you plan to do them to non-phylogenetic or taxonomic diversity analysis methods such as bray-curtis or binary-jaccard.

Let me know if you have any other questions, and feel free to email me any cool results. Would love to see them. 🤩

---

_[View the full topic](https://forum.qiime2.org/t/ghost-tree-index-out-of-range-error/13275)._
