Giter VIP home page Giter VIP logo

Comments (3)

adf-ncgr avatar adf-ncgr commented on June 2, 2024

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.

alancleary avatar alancleary commented on June 2, 2024

@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.

alancleary avatar alancleary commented on June 2, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.