Comments (3)
adf-ncgr notes to self that this issue has some conceptual overlap with the hack that he put in a local version of the legend.js code to aid in evaluating FrequentedRegions algorithm results, something along these lines in the on mouseover associated function with elements generated in the legend _drawKey method; Hopefully, if we ever actually address this issue, it will be through something far less hacky and involving breakpoints and injection of state via the console!
selection[0] = [];
var fs=['phytozome_10_2.59205044','phytozome_10_2.59028006','phytozome_10_2.59315123','phytozome_10_2.59271012','phytozome_10_2.59073169','phytozome_10_2.59179688','phytozome_10_2.59310457','phytozome_10_2.59227160'];
fs.map(f => {selection[0].push.apply(selection[0], d3.selectAll('.GCV [data-family="'+f+'"]')[0])});
from gcv.
@adf-ncgr Since the gene that you would be searching for would only be present in the micro-synteny viewer, does it make sense to repurpose the existing search widget for this purpose and add a new search widget to the main navbar at the top for providing a new focus gene?
from gcv.
I recently hacked a primitive version of this into GCV for @adf-ncgr, which made me recall this issue. Here are some implementation details that came to mind when implementing the hack:
- This should be a top-level feature that applies to all micro-synteny viewers in the view, e.g. add a highlight icon to the top-level navbar
- Clicking on the highlight icon should open a widget that allows users to toggle between highlighting the query genes and genes that they enter manually into a text field
- The genes entered in the text field should persist between pages but not be encoded in the URL like other parameters due to URL query string length limitations (persistence should be implemented via NgRX/store)
- Extra credit: the highlight widget could include a color selector that allows users to select what color they want to highlight genes with as an alternative to the default black color, which can make it hard to spot highlighted genes
from gcv.
Related Issues (20)
- Create a new repo for GCV docker compose files HOT 1
- GCV deployment
- Update NGINX config to set path via environment variable HOT 4
- Remove Docker Compose files from GCV repo HOT 2
- Add dependabot to gcv repo HOT 1
- Macro-synteny colors HOT 1
- Randomly color macro-synteny tracks HOT 1
- Color macro-synteny tracks by species and chromosome HOT 1
- Make macro-synteny coloring a top-level configuration HOT 1
- Search widget doesn't always contain search term HOT 1
- Help widget should be on all pages HOT 1
- golden layout panes in the initial microsynteny view should be individually dismissable (at least the legends) HOT 1
- Auto-resize legend column
- Move GCV assets to pseudo package
- better handling of case where same genome has multiple annotation versions HOT 8
- Better control of Circos chromosomes
- Add Tooltips to GoldenLayout tabs
- Implement scroll-to behavior in legends
- Macro-synteny highlight behavior
- revive GCV1-era list of datasource descriptions in instructions page
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 gcv.