Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

volatility: metadata column names containing periods cannot be interpreted #133

Open
nbokulich opened this issue Dec 3, 2018 · 3 comments
Labels
bug-sev:2|low bug-type:2|workaround-req Progress can't be made in the usual way. diff:2|intermediate A modest understanding of the languages involved and platform is required. good first issue Good for newcomers lang:misc Anything that doesn't fit, such as a conda recipe. scope:0|this-project No other repositories are impacted. src:forum From the QIIME 2 Forum. time:1|short Should not take very much time to complete (assuming familiarity). type:bug Something is wrong. weight:1|low It is definitely happening in the future.

Comments

@nbokulich
Copy link
Member

Bug Description
If metadata column names contain periods, that column cannot be viewed on the volatility plot. It seems that the periods may be interpreted as special characters.

Steps to reproduce the behavior
see here (sourced from forum xref below)

Expected behavior
Those columns should be viewable in the volatility plot.

References
forum xref

@nbokulich nbokulich added type:bug Something is wrong. bug-sev:2|low bug-type:2|workaround-req Progress can't be made in the usual way. diff:2|intermediate A modest understanding of the languages involved and platform is required. lang:misc Anything that doesn't fit, such as a conda recipe. scope:0|this-project No other repositories are impacted. src:forum From the QIIME 2 Forum. time:1|short Should not take very much time to complete (assuming familiarity). weight:1|low It is definitely happening in the future. labels Dec 3, 2018
@thermokarst
Copy link
Contributor

My guess is that some vega lookup is using the Javascript dot accessor (data.peanut), when it should be using the square bracket lookup (data['peanut']). The problem here is when you have a period in the key: data.peanut.butter ({data: { peanut: { butter: 'yummy!' } } }) vs data['peanut.butter'] ({data: { 'peanut.butter': 'peanut butter jelly time!' } }).

@nbokulich nbokulich added the good first issue Good for newcomers label Jul 30, 2019
@David-Rod
Copy link
Contributor

Hey there @nbokulich and @thermokarst,

After reviewing this issue with @ebolyen and @Oddant1, it seems that a newer version of Vega has solved the issue. The Vega version used by the user was version 3.3.1. The current version in the QIIME 2 source code is version 4.4.0. I replicated this issue (as closely as I could) with current files from the tutorial, and Q2 View has no issue displaying the plot for group column names containing a..

TLDR: I think we can close this issue.

Thanks.

@nbokulich
Copy link
Member Author

thanks for investigating @David-Rod !

Maybe we should a) pin a minimum vega version (if it is not already) and b) maybe also toss in a quick unit test? (though if we are positive this is related to the vega version then no need for a test). Interested to hear @thermokarst 's thoughts.

@thermokarst thermokarst self-assigned this Aug 12, 2019
@thermokarst thermokarst removed their assignment Jul 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-sev:2|low bug-type:2|workaround-req Progress can't be made in the usual way. diff:2|intermediate A modest understanding of the languages involved and platform is required. good first issue Good for newcomers lang:misc Anything that doesn't fit, such as a conda recipe. scope:0|this-project No other repositories are impacted. src:forum From the QIIME 2 Forum. time:1|short Should not take very much time to complete (assuming familiarity). type:bug Something is wrong. weight:1|low It is definitely happening in the future.
Projects
None yet
Development

No branches or pull requests

3 participants