Coder Social home page Coder Social logo

igv-utils's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

igv-utils's Issues

translateGoogleCloudURl modifies & breaks signed URLs

we're using the igv.js package to render IGV plots in our app. Our data is secured in google cloud storage and is accessed by our app generating a signed URL for the files in each track. However, when the igv library fetches data from these files, the URLs are transformed from the original, signed url to a different url schema which breaks the signing, and thus we get an authentication error.

Looking through the code, it appears igv-utils transforms any URL it determines is a google URL into a different format (see translateGoogleCloudURl here):

// igv-util url schema
https://storage.googleapis.com/storage/v1/b/${bucket}/o/${object}${paramString}
// expected schema - should not be modified
https://storage.googleapis.com/my-private-bucket/some/file/path/bigwig/datafile.bigWig?X-Goog-Algorithm=GOOG4-RSA-SHA256&X-Goog-Credential=some-credential-string&X-Goog-Date=20220413T031210Z&X-Goog-Expires=299&X-Goog-SignedHeaders=host&X-Goog-Signature=SOME_VALID_SIGNATURE_STRING

Is there a workaround to getting signed URLs working with the igv library?

Wrong version in package.json

We are using igv and recently we started having issues during building packages, as there is a conflict before version 1.2.7 and 1.2.6. The recent igv-utils is still marked as 1.2.6 in package.json instead 1.2.7. Because of that the yarn or npm are having issues to update to newest version.

{  "name": "igv-utils",  "version": "1.2.6",  "description": "Misc code shared by igvteam projects",  "module": "src/index.js",  "files": [    "src/**"  ],

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.