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

Meta safety checks #586

Merged
merged 7 commits into from
Jul 2, 2018
Merged

Meta safety checks #586

merged 7 commits into from
Jul 2, 2018

Conversation

trvrb
Copy link
Member

@trvrb trvrb commented Jun 28, 2018

@jameshadfield ---

I went through and systematically tested removal of each field in meta.json and corrected errors associated with removal of each. I even got it to the point where the app works if meta.json is completely absent. Here is Zika from modular augur without a meta.json file:

metaless

It defaults to just the tree as entropy is impossible without meta.annotations and map is impossible without meta.geo. But I think this is pretty great. I tested this with other tree JSONs and it's working for other pathogens as well.

@rneher --- This is my proof of principle for intermediate tree JSON files in augur (nextstrain/augur#134). They will be easily viewable.

I would recommend making this drag-and-drop, but I'll need help from @jameshadfield to make this happen.

trvrb added 7 commits June 27, 2018 14:17
App now works without meta.author_info. The tip info box just doesn't display these fields.
Previously, entropy was always drawn even if panels did not specify it.
App now works when meta.annotations is absent. Almost completely functional. Color by genotype doesn't do anything, but this is better than the previous crash behavior.
Drop map panel if geo is absent
If meta.panels absent default to just displaying tree
Default to colorBy="none" when color_options is absent. When colorBy = "none", fall back to simple grayscale colorScale.
App now works without meta.json!
@jameshadfield
Copy link
Member

Looks good. Will make sure things work today -- could you modify https://github.com/nextstrain/static/blob/master/content/docs/03-bioinformatics-pipeline/05-exported-JSON-files.md please?

re: drag & drop, technically it's not hard, but I remember discussing this with you in the past and deciding not to take auspice in this direction. Happy to revisit.

@trvrb
Copy link
Member Author

trvrb commented Jun 28, 2018

re: drag & drop, technically it's not hard, but I remember discussing this with you in the past and deciding not to take auspice in this direction. Happy to revisit.

With nextstrain/augur#134 closed. I think drag-and-drop is less important. But this is a general decision that should be made.

Looks good. Will make sure things work today -- could you modify https://github.com/nextstrain/static/blob/master/content/docs/03-bioinformatics-pipeline/05-exported-JSON-files.md please?

Sure thing. Waiting for augur PR to go in.

@trvrb
Copy link
Member Author

trvrb commented Jun 30, 2018

Metadata description updated: nextstrain/static@6a52873

@jameshadfield jameshadfield merged commit 6f816a1 into master Jul 2, 2018
@jameshadfield jameshadfield deleted the meta-safety-checks branch July 2, 2018 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants