Skip to content
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

loadLink with loc=some_name #2444

Closed
abretaud opened this issue Apr 22, 2020 · 11 comments · Fixed by #2476
Closed

loadLink with loc=some_name #2444

abretaud opened this issue Apr 22, 2020 · 11 comments · Fixed by #2476

Comments

@abretaud
Copy link
Collaborator

Hi,
In one of my webapp, I'd like to add links with urls like the following to let users open apollo on a specific organism (Some organism), and at a specific position using the name of a feature indexed in the jbrowse data dir by generate-names.pl (FOOBAR026052-RA)

https://bipaa.genouest.org/apollo/annotator/loadLink?organism=Some%20organism&loc=FOOBAR026052-RA

Selecting the organism works great, but the loc parameter has no effect (unless I set it to a chr1:1..1000 value, but that's not possible in my case).

With an url like this, I get redirected to another url like that: https://bipaa.genouest.org/apollo/annotator/index?clientToken=<random_id> (so, no loc parameter)

Of course, when writing manually the FOOBAR026052-RA id in the jbrowse search box, it is found, so I don't think the problem is on the jbrowse side.

Do you have any clue why it's not working?

@nathandunn
Copy link
Contributor

Hmmm . . . . having it use the search explicitly might be hard. The track service could iterate and do a linear scan and search and scan. I do this for track services already, but usually I specify the track.

I think this would work unless you have a ton of tracks with no way to specify them.

We could also do this by flagging specific annotations. Just let me know.

@abretaud
Copy link
Collaborator Author

Wouldn't it be possible to just pass it to jbrowse and let it find the correct position?

@nathandunn
Copy link
Contributor

If it can be passed into the JBrowse url, then probably.

@abretaud
Copy link
Collaborator Author

yep, it's the loc url param I use for standalone jbrowse

@nathandunn
Copy link
Contributor

Okay, I will see what I can do. I can make it part of RC2 2.6.0

@abretaud
Copy link
Collaborator Author

that would be great, thanks :)
(by the way, I just release python-apollo 4.2)

@nathandunn
Copy link
Contributor

Perfect I just updated it for the specific version.

@nathandunn
Copy link
Contributor

Note to self:

loadLink is a method on the AnnotatorController. The current method sets a preference and then calls "setCurrentSequenceLocation".

What we'll have to do instead is to do a index?search=XXX instead and pass that directly to the client with selectedSequence = "searchString" minRegion = null, maxRegion = null and forceUrl = true

@nathandunn
Copy link
Contributor

nathandunn added a commit that referenced this issue Apr 30, 2020
nathandunn added a commit that referenced this issue Apr 30, 2020
nathandunn added a commit that referenced this issue Apr 30, 2020
@abretaud
Copy link
Collaborator Author

abretaud commented May 4, 2020

Thanks for the fix @nathandunn! It works great

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants