Coder Social home page Coder Social logo

igv.js-flask's People

Contributors

dependabot[bot] avatar ishanley avatar jrobinso avatar richardbruskiewich avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

igv.js-flask's Issues

Tracks not rendering

Hello, I'm running igv-flask with default settings and files but nothing appears on the BigWig or bedgraph tracks. I am not able to see any errors on the Console or Network tab of the Firefox debugger.

Screenshot 2021-07-29 at 12 15 36
I also tried upgrading to the latest igv (2.9.3) but get the same behaviour. I'm running via Docker (python3.8 image) on a virtual machine. This is the output from the Flask server log:

* Serving Flask app 'igvjs' (lazy loading)
* Environment: development
* Debug mode: on
* Running on all addresses.
WARNING: This is a development server. Do not use it in a production deployment.
* Running on http://172.20.0.2:5000/ (Press CTRL+C to quit)
10.7.90.27 - - [29/Jul/2021 11:04:15] "GET / HTTP/1.1" 200 -
10.7.90.27 - - [29/Jul/2021 11:04:15] "GET /static/js/init.js HTTP/1.1" 200 -
10.7.90.27 - - [29/Jul/2021 11:04:16] "GET /static/img/favicon.ico HTTP/1.1" 200 -
10.7.90.27 - - [29/Jul/2021 11:04:17] "GET /static/data/public/test.bw HTTP/1.1" 206 -
10.7.90.27 - - [29/Jul/2021 11:04:17] "GET /static/data/public/test.bedGraph HTTP/1.1" 200 -
10.7.90.27 - - [29/Jul/2021 11:04:17] "GET /static/data/public/test.bw HTTP/1.1" 206 -
10.7.90.27 - - [29/Jul/2021 11:04:17] "GET /static/data/public/test.bw HTTP/1.1" 206 -
10.7.90.27 - - [29/Jul/2021 11:04:17] "GET /static/data/public/test.bw HTTP/1.1" 206 -

Let me know if I can provide any more information.

Issues running igv.js-flask

Hi -

I am trying to set up igv.js-flask server.
I have python3 and pip installed.

After cloning igv.js-flask.git, pip install -r requirements.txt installed all packages with out an error.

When I ran, python run.py, I get following error:

Traceback (most recent call last): File "run.py", line 2, in <module> from igvjs import app File "/usr/local/bin/igv.js-flask/igvjs/__init__.py", line 15, in <module> from igvjs.main import igvjs_blueprint File "/usr/local/bin/igv.js-flask/igvjs/main.py", line 5, in <module> from _config import basedir ModuleNotFoundError: No module named '_config'

After fixing this error by editing, igvjs/main.py with from igvjs._config import basedir, I have another error with respect to mysql,

Traceback (most recent call last): File "run.py", line 2, in <module> from igvjs import app File "/usr/local/bin/igv.js-flask/igvjs/__init__.py", line 16, in <module> from igvjs.ucsc import ucsc_blueprint File "/usr/local/bin/igv.js-flask/igvjs/ucsc.py", line 45 except mysql.connector.Error, e: ^ SyntaxError: invalid syntax

Any help would be appreciated.

Thanks,
Mahesh

Addition of an example 'custom' Flask Blueprint for experimentation

@jrobinso my interest in this project today was simply to facilitate exploration and tinkering with igv.js data integration on my local machine. Along the way, I have sent a few tweaks to the project. However, a significant tweak still resides on my local machine. I'd love to issue a pull request for you to review; however, the project seems slightly too restrictive to do this at the moment.

That said, let me explain what I have: I have simply created a new "custom.py" Flask Blueprint alongside the ucsc and alignments blueprints, which simply allow access to (slightly tweaked) custom-track-click, custom-popover and customReference html templates, as examples inside this Flask project. Maybe, though, this idea could be generalized somehow to connect this project to the main igv.js. Maybe embedding the primary igv.js repo as a submodule might work(?).

configuring igv.js flask server with nginx

Hi -

I am trying to configure flask server with uwsgi and nginx.
My uwsgi.ini file looks like:

[uwsgi]
module = run
callable = app

If I try my configuration with a sample app: run.py where app variable is initialized with Flask(name), it works fine. However, I can't seem to run IGV server.

Any thoughts to help me with this?

Thank you,
Mahesh

Visualizing BAM/BAI files from remote server

Hi!

I am trying to setup the flask server in this repo to incorporate some of the functionalities of the JS web app your team wrote. I'm done with the front end design part of it( navbar, track options, etc.). And CORS is already enabled in the config file by your team.

My question -- how would I go about visualizing BAM/BAI files hosted on a remote server? Right now, the flask app only has the example tracks. Once I click on the load track, and select the appropriate files, they are not loaded in the IGV browser window. I've been trying to read through the files in the JS directory of igv-webapp to find the code that is responsible for this functionality, but have been unsuccessful :(

Could you help please?

provide means to over-ride the "minified" css

The code at:
https://github.com/igvteam/igv.js-flask/blob/master/igvjs/static/css/igv.css
appears to do nothing as it is not imported at:
https://github.com/igvteam/igv.js-flask/blob/master/igvjs/templates/igv.html
Instead that html file imports the minified igv.js, which, contains all the css that the app uses.

I would either remove
https://github.com/igvteam/igv.js-flask/blob/master/igvjs/static/css/igv.css
or indicate how it may be used to override the css contained in the minified igv.js at

<script type="text/javascript" src="https://igv.org/web/test/dist/igv.js"></script>

The ability to over-ride the minified css would be a useful feature.

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.