Hello,
First, I want to thank you for the development and the support! I’m really enjoying learning how to perform my analyses with qiime2.
Second, I have an issue with running gneiss ols-regression.
I performed the analysis with a rooted tree.
When I try to run the regression I receive the following error: ’the label [y7] is not in the [index]'
Can you please help me understand what is the problem?
I’m getting the same error, 'the label [y13] is not in the [index]'
@LenaLapidot, I’d be interested see if @mortonjt can sort this out. Alternatively, I could provide the files I’m working with for trouble-shooting.
In case it’s relevant I’m working with the docker installation of Qiime 2018.8 and my balances were built on a subset of samples using a rooted tree generated from all samples in the experiment. Still, gneiss ilr-phylogenetic completed without an error.
thermokarst
(Matthew Ryan Dillon)
assigned mortonjt
#8
It is possible that the ids are not matched between the internal nodes of the tree and the balances. @aphanotus, want to provide those files so that I can investigate? I just need the feature table, the balance table and the tree to confirm.
thermokarst
(Matthew Ryan Dillon)
unassigned mortonjt
#10
Hi @aphanotus and @LenaLapidot sorry about the delay. Found that problem is boiling down to the tree not being trimmed down the sequences contained in the table. Your tree has more sequences than the table, which is causing issues.
Just pushed in a PR here to fix this. The work around in the meantime is to manually trim those sequences via
import qiime2
from skbio import TreeNode
import pandas as pd
from gneiss.util import match_tips
table = qiime2.Artifact.load("<your-table>").view(pd.DataFrame)
tree = qiime2.Artifact.load("<your-tree>").view(pd.DataFrame)
table, tree = match_tips(table, tree)
tree.write("<your-new-tree>")