Details
-
Type:
Task
-
Status: Closed (View Workflow)
-
Priority:
Major
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: None
-
Labels:None
-
Story Points:2
-
Epic Link:
-
Sprint:Summer 5 2022 July 18, Summer 6 2022 Aug 1, Fall 1 2022 Aug 15
Description
Add a button to the manual trackhub-converter page to hit the "Add Data Source" endpoint in IGB. Parameters required for the request:
1) quickloadurl (eg. https://translate.bioviz.org/api/?hubUrl=https://raw.githubusercontent.com/mhalushka/miROme/main/UCSC/hub.txt&filePath=/) and 2) quickloadname: short label in the hubUrl file (use the hubUrl in the above link to see a short label example)
Use the following endpoint: http://127.0.0.1:7085/igbDataSource for the request call.
For the manual trackhub converter page, the 'Add Data Source to IGB' button and the method has been implemented. The button appears only after the UCSC trackhub is converted and the quickload data source URL is copied from the result for the 'quickloadurl' parameter. For the 'quickloadname' parameter, the UCSC trackhub url is called and the 'shortLabel' is used. Thus, the 'add data source' endpoint URL is built.
However, when the igbDataSource endpoint is hit, I run into an error in IGB:
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException: genomeVersionNamePrefix is a required field.
When sample parameters are used(like "bioviz.org" and "karthik" for quickloadurl and quickloadname respectively) right after the 'built' URL above is called, both data sources are added to IGB.
See Nowlan Freese comments in
IGBF-3131where a list of testing issues are mentioned, Issue 2 "Invalid quickload (incorrect URL that returns HTML) "For public trackhub page, I assume that the same error will appear. A design for 'Add Data Source' button needs to finalized as well.