-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to include tabix-js directly in html #146
Comments
currently we don't have a single minified source for tabix. we do have one for cram-js though so we could consider making one for tabix.... |
thanks. I would like to use it on spliceai-lookup. |
i copied the cram approach here in this PR #147 there is a gzip download example. it is a "UMD" bundle that sets a variable called "gmodTABIX" an example source code using it
misc note: note that url and tbiUrl were added on this branch, not on master currently. that avoids needing to bundle a separate generic-filehandle bundle. attachment: |
(note that if something like that works for you, then we can merge and then it can be available from the unpkg cdn which hosts stuff that is published on npm) |
CORS errors are tricky. it generally comes down to a server side config. if you responseHeader is something related to cors you might also need to enable Content-Length and Content-Range...this is an example we use for amazon s3 buckets https://jbrowse.org/docs/cors.html it is a little more detailed than a typical cors config due to the need for content-length (might be skippable in some cases) and ranges (requires) |
It works! I needed to change the url from
to
Thanks again for your help! The google bucket CORS config I'm using now is
and I set it by running
|
went ahead and merged this PR, you can now get it remotely from remote CDN like unpkg (if interested...certainly can download and vendor it also) latest https://unpkg.com/@gmod/tabix/dist/tabix-bundle.js let me know if you run into any issues :) |
thanks! |
Hi, would it be possible to build a single minified tabix-js source and make it available via CDN so it can be added to an html page without requiring an npm build?
The text was updated successfully, but these errors were encountered: