Details

    • Type: Task
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      Validating trackhub URLs is currently done in the browser and involves making requests for their content and ensuring that it conforms to the UCSC trackhub specification. The UCSC CORS policy does not allow websites to make these requests, however. Implement a work-around.

      Possibilities:

      • See if the UCSC API can be used to validate a trackhub.
      • Implement a validation endpoint on our hub facade API.
      • Use a public CORS proxy to forward browser requests.

        Attachments

          Issue Links

            Activity

            Show
            pbadzuh Philip Badzuh (Inactive) added a comment - I was able to find a UCSC API endpoint that can be used to validate track hubs. Please see my changes here . I tested this with both track hubs in UCSC public list as well as others that I found online e.g. https://api.genome.ucsc.edu/list/hubGenomes?hubUrl=http://trackhub.genome.duke.edu/gordanlab/tf-dna-binding-predictions/hub.txt https://api.genome.ucsc.edu/list/hubGenomes?hubUrl=http://nibiru.tbi.univie.ac.at/ViennaNGS/tutorial03/hg19_trackHub/trackHub/hub.txt https://api.genome.ucsc.edu/list/hubGenomes?hubUrl=http://krishna.gs.washington.edu/content/members/ajh24/mouse_atlas_data_release/bigwigs/trackhub/hub.txt
            Hide
            pbadzuh Philip Badzuh (Inactive) added a comment -

            Changes are now deployed and accessible at https://bioviztest.bioviz.org/trackhubs.html

            Show
            pbadzuh Philip Badzuh (Inactive) added a comment - Changes are now deployed and accessible at https://bioviztest.bioviz.org/trackhubs.html
            Hide
            ann.loraine Ann Loraine added a comment -

            Changes look good. Comment is updated to reflect improved functionality. Please submit PR when ready.

            Show
            ann.loraine Ann Loraine added a comment - Changes look good. Comment is updated to reflect improved functionality. Please submit PR when ready.
            Hide
            pbadzuh Philip Badzuh (Inactive) added a comment -

            Please see PR here.

            Show
            pbadzuh Philip Badzuh (Inactive) added a comment - Please see PR here .
            Hide
            ann.loraine Ann Loraine added a comment -

            Merged.

            Show
            ann.loraine Ann Loraine added a comment - Merged.
            Hide
            ann.loraine Ann Loraine added a comment -

            Deployed to bioviztest.bioviz.org for testing.

            Show
            ann.loraine Ann Loraine added a comment - Deployed to bioviztest.bioviz.org for testing.
            Hide
            ann.loraine Ann Loraine added a comment -

            Confirmed that the example URL and others are functioning as expected. Moving to Closed.

            Show
            ann.loraine Ann Loraine added a comment - Confirmed that the example URL and others are functioning as expected. Moving to Closed.
            Hide
            ann.loraine Ann Loraine added a comment -

            I spoke too soon. The track hub site referenced is on localhost. Looking into it.

            Show
            ann.loraine Ann Loraine added a comment - I spoke too soon. The track hub site referenced is on localhost. Looking into it.
            Hide
            ann.loraine Ann Loraine added a comment - - edited

            Hard reload in my browser fixed the problem. Playbooks working as designed. For future reference: a line in trackhubs.js containing:

            const BACKEND_DOMAIN 
            

            gets changed.

            Show
            ann.loraine Ann Loraine added a comment - - edited Hard reload in my browser fixed the problem. Playbooks working as designed. For future reference: a line in trackhubs.js containing: const BACKEND_DOMAIN gets changed.

              People

              • Assignee:
                pbadzuh Philip Badzuh (Inactive)
                Reporter:
                pbadzuh Philip Badzuh (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: