Comments (4)
How should column hiding/unhiding work? Would you have a drop-down where you can select (with checkmarks) which columns to show?
beta/sebeta: easy. Adding odds ratio should be easy but who knows.
Column sorting: I should use a different table library. Encore uses jquery.datatables.
from pheweb.
column hiding/unhiding: it's implemented in jquery.datatables https://datatables.net/examples/api/show_hide.html
beta/sebeta: start with this; and then we can tackle OR
Column sorting: jquery.datatables looks like a good solution.
from pheweb.
Switch the Top Hits table to use jquery.datatables (to allow for sorting and filtering), and add the following columns:
- Beta (discussed above)
- "VT" SNP or Indel
- "GENO" 0=imputed; 1=genotyped
- VEP Impact
To the Tooltip add:
- "R2" Imputation quality (or genotyped)
- VEP Consequence
Eventually, when the user filters the table, the Manhattan plot filters too.
from pheweb.
Summary
For top_hits, pheno, and variant page tables:
-
Make some columns only available if there is data for them (eg,
beta
)- make a header-template that takes a {variant: true, beta_sebeta: true, ...}
- likewise for row-template
- put these two into a {%block%} for {%extends%}ing them
- probably iteratively build these templates together, appending one column at a time.
if (v.beta) { header_template += ... ; row_template += ... }
-
Make columns sortable. (eg,
variant
)- done by jquery.datatables
-
Allow users to choose which columns to show. (eg,
R2
)- done by jquery.datatables
-
Later: make the tables below PheWAS and Manhattan filterable, and those filters would affect the plot.
from pheweb.
Related Issues (20)
- Hiding download buttons HOT 1
- Enhancing the search bar HOT 1
- adding vep annotation manually
- Genetic correlations are not shown HOT 2
- -log10 pvalue input support HOT 1
- Save manhattan plot as png/svg HOT 1
- url_for in random does not allow https HOT 9
- Variants page is not displayed HOT 3
- Easier Way to Use Custom LD? HOT 6
- URI as assoc_files in pheno_list.json HOT 1
- Core features of pheweb: ref/alt, add_rsid, hg17/38 HOT 3
- stroke
- ModuleNotFoundError: No module named 'pheweb.command_line' HOT 3
- 404 not found error of phewas plot page (Pheweb with structural variants) HOT 4
- "An exception occurred" when I run the command: pheweb serve --open HOT 3
- pheweb to display multiple GWAS? HOT 1
- outdated instruction "pheweb phenolist glob-files" HOT 2
- PheWeb can display phenotype correlations generated by another tool. HOT 4
- pheweb-rg-pipeline does NOT work HOT 1
- Installation Problem HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pheweb.