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

Feature/pass sample vals as json #535

Merged
merged 8 commits into from
Jan 6, 2021

Conversation

zsloan
Copy link
Contributor

@zsloan zsloan commented Dec 18, 2020

Description

This PR changes the way sample values are passed to mapping and correlation tools from the trait page. Currently there's a separate parameter for every single sample, which is pretty dumb. This instead makes a single parameter that contains JSON of all the sample values.

This probably also isn't ideal (since it still includes all the samples in the form), but it's definitely preferable to the way it currently is.

How should this be tested?

Do anything involving correlations or mapping from the trait page (or zooming into regions or reloading mapping results) with any sort of trait. Things should work as expected, and any problems will likely manifest as an error. One other thing to look out for is the N being wrong on the loading page (I think this issue is fixed, but worth keeping an eye on to make sure the number of values being passed is correct).

Any background context you want to provide?

N/A

What are the relevant pivotal tracker stories?

N/A

Screenshots (if appropriate)

Questions

…s JSON instead of having separate form parameters for each sample + removed some commented out code/logging
… sample values (pulled from the sample table using DataTables API in show_trait.js)
…is included in start_vars when trait page parameters are passed to the mapping loading page
…ad of separate ones for every sample + added sample_vals to the list of inputs sent to the loading page
@zsloan zsloan self-assigned this Dec 18, 2020
@zsloan zsloan marked this pull request as ready for review December 29, 2020 20:54
@zsloan zsloan merged commit 03e2a25 into genenetwork:testing Jan 6, 2021
@zsloan zsloan deleted the feature/pass_sample_vals_as_json branch March 9, 2021 21:31
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.

1 participant