-
Notifications
You must be signed in to change notification settings - Fork 199
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
handling as URL params instead of JSON #952
Conversation
|
@deepakunni3 Can you make sure this works? (not sure why you are not in as a reviewer for this one) In this case I'm using a remote gff as reference.
|
@deepakunni3 / @enuggetry I think this does everything I want to do. It still needs some documentation, but I want to merge this first. It is using this: https://github.com/rhalff/dot-object I got the npm package to work, but it ended up being wonky (wanted things at @childers, I think this would be worth testing internally. I tried to encompass the work-cases you gave me. You can create URLs from JSON, as well. Some of the tests show how: |
It looks good to go. thanks. |
@nathandunn Thanks, I've been testing this and it does take the parameters as URL params now. This new functionality works great. Thanks! |
Wait, it works for both JBrowse and Apollo now? (I haven't tested it) |
The URL params work great in JBrowse, but don't work in Apollo. I can open an issue there if that's helpful. Please see GMOD/Apollo#1840 for some more information |
I just noticed that addFeatures doesn't seem to be implemented, or if it is, I can't figure it out. As an example I have a URL with some features here: https://apollo.nal.usda.gov/Drosophils%20bipectinata/jbrowse/?loc=scf7180000394085:914360..917628&tracks=DNA,Annotations,BlastResults&addTracks=[{"style": {"renderClassName":"blast-hit-20pct"},"label":"BlastResults","store":"url","type":"JBrowse/View/Track/HTMLFeatures"}]&addFeatures=[{ "seq_id":"scf7180000394085", "start": 914360, "end": 914389, "strand": "1", "name": "HSP:"},{ "seq_id":"scf7180000394085", "start": 917599, "end": 917628, "strand": "1", "name": "HSP:"}] I can get all of the other sections working, but can't seem to work out the addFeatures params. &addFeatures=[{ "seq_id":"scf7180000394085", "start": 914360, "end": 914389, "strand": "1", "name": "HSP:"},{ "seq_id":"scf7180000394085", "start": 917599, "end": 917628, "strand": "1", "name": "HSP:"}] |
@childers I have not implemented addFeatures, as I thought the most common use-case would be to use a remote url. I've added it to my list (its a "TODO" https://github.com/GMOD/jbrowse/pull/952/files#diff-cfb6e24963d31803b05b44d42ea77246R86). You have a pretty simple use-case. I'll see if I can't get it done in the next couple of weeks. If you have time to start the implementation in PR, that would be great, as well, and I can simply help you finish it out. |
@nathandunn can you write a section on this in the JBrowse Configuration guide on the wiki, and note that it is coming out in JBrowse 1.12.4? |
@rbuels You need anything else on this? I'm going to do some work on supporting addFeatures, as well and I will update the doc further as well. Let me know if anything is with it. |
This looks good to me as is! Thanks for this. |
~~handle addFeatures ~~