GithubHelp home page GithubHelp logo

Comments (3)

simonbrent avatar simonbrent commented on May 24, 2024

Hi Anton, my apologies for the ridiculous delay in answering this question!

The answer (if you still care) is that you shouldn't need to detect if it is "ready". Once you've done new Genoverse({..}), you can move around or zoom immediately, and track data will be loaded for your new region once you do this. You do not have to wait for the tracks to load in the initial region before moving away from it.

If you are creating a browser dynamically, you should just set chr, start and end in the config to be what you want, and then you wouldn't have to worry about moving straight away.

from genoverse.

AntonPetrov avatar AntonPetrov commented on May 24, 2024

Hi Simon,

Thanks for your reply. I do still care, although I am working on something else now and don't quite remember all the details.

I do remember, however, that in practice if you do

browser = new Genoverse({start=X, end=Y, chr=Z, etc});
browser.zoomOut();

sometimes it would load the desired location and then zoom out (which is what I want) and sometimes it would zoom out on the default region and then navigate to the new region specified in the config. The scenario depends on how fast the REST API serves up the annotations.

Maybe this isn't the case anymore, but it was at this time: 867c886

Feel free to close this issue for now if you like, but I am going to update it if I run into this problem again.

from genoverse.

simonbrent avatar simonbrent commented on May 24, 2024

Hi Anton,

I cannot currently replicate this with the current code, so I will close it for now.

from genoverse.

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.