-
Notifications
You must be signed in to change notification settings - Fork 5
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
Added NucContent plugin #4
base: main
Are you sure you want to change the base?
Conversation
Nice work! This is so cool. I will try to check this out soon and we can merge |
I tried adding this plugin in a config and got an error
Error: plugin NucContent failed to load, Window.JBrowsePluginNucContent is undefined @garrettjstevens @jjrozewicki any idea why that might be? sorry for the slow review process here also. we should probably make a better process for contributions to get added |
I think the URL might be wrong, that URL has |
good point. we could probably make the URL to https://unpkg.com/jbrowse2-plugin-nuccontent/dist/jbrowsepluginnuccontent.umd.production.min.js we could consider pinning the version at 1.0.9 but sometimes is nice to get the latest and that is what is used by other plugins...could also consider GMOD/jbrowse-components#2158 |
I fixed the documentation to use the proper URL for the latest version, bumped the version number, and published a new npm pacakage. I apologize for the confusion. |
I've fixed the url in the plugins.json in my branch. |
I apologize for the super long delay in getting to this. If still interested in merging let me know. I tried adding this to a sample browser with
|
There were some issues I had with v1.5.1 that required me to make changes
ahead of what was available as far as public releases went. Once the public
release was available I forgot to go back and hit publish on the package.
I have tested with v1.5.9, and published a new version which should be able
to be tested properly by you. Let me know if you find any issues, though.
…--John Rozewicki
On Sat, Jan 15, 2022 at 4:13 AM Colin Diesh ***@***.***> wrote:
I apologize for the super long delay in getting to this. If still
interested in merging let me know. I tried adding this to a sample browser
with
{
"name": "NucContent",
"url": "https://unpkg.com/jbrowse2-plugin-nuccontent/dist/jbrowsepluginnuccontent.umd.production.min.js"
}
hardcoded in a config.json but it says
[image: Screenshot from 2022-01-14 12-12-03]
<https://user-images.githubusercontent.com/6511937/149571884-96516309-161f-4666-ab00-709f64bae152.png>
—
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AH25MTNLZ4OTQPMDYP54RIDUWBYUDANCNFSM47TXPGMA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I was still seeing the same error with the latest update...not sure. I remember seeing this type of error at one point with our other code, do you happen to recall what this is related to @garrettjstevens ? it seems like maybe a babel compile level or something like that |
That error usually means there was some error thrown when running the plugin code, but unfortunately doesn't give access to the real error that happened. I looked at the plugin itself, and I'm not sure where the problem would be. It could be worth using |
I will try to do that, but I'm not certain it will work. For some reason
the `.umd.production.js` version doesn't load, but the
`.umd.development.js` version does.
I haven't done anything special with packaging or building. It's just the
normal tsdx build. Do you have any idea about what might cause a difference
there? Without an error being surfaced it's going to be pretty difficult to
fix.
…--John Rozewicki
On Fri, Jan 21, 2022 at 6:01 AM Garrett Stevens ***@***.***> wrote:
That error usually means there was some error thrown when running the
plugin code, but unfortunately doesn't give access to the real error that
happened.
I looked at the plugin itself, and I'm not sure where the problem would
be. It could be worth using jbrowse-plugin-template
<https://github.com/GMOD/jbrowse-plugin-template> to update the plugin's
build system to the latest recommended way.
—
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AH25MTIGK74PHAWCDZ6LJ3DUXBZ2TANCNFSM47TXPGMA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I wasn't able to get the production or development versions to work. I then realized, though, that I mistook this error for another one in my comment above (I was actually thinking about the error That led me to realize that it was indeed a babel error. @jjrozewicki, I've proposed a solution to you here: jjrozewicki/jbrowse2-plugin-nuccontent#1 |
Thanks to some big help from Garrett Stevens I believe the issue with the
plugin not loading should be fixed. I have pushed a new version to NPM.
I apologize for the strange state my dependencies and build settings
drifted into over time.
…--John Rozewicki
On Sat, Jan 22, 2022 at 5:54 AM Garrett Stevens ***@***.***> wrote:
I wasn't able to get the production or development versions to work. I
then realized, though, that I mistook this error for another one in my
comment above (I was actually thinking about the error TypeError: P is
not a constructor, which doesn't usually say anything helpful).
That led me to realize that it was indeed a babel error. @jjrozewicki
<https://github.com/jjrozewicki>, I've proposed a solution to you here:
jjrozewicki/jbrowse2-plugin-nuccontent#1
<jjrozewicki/jbrowse2-plugin-nuccontent#1>
—
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AH25MTPKZFTSHNKCMPZWYGTUXHBZPANCNFSM47TXPGMA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I was able to test this out now, and the adapter/display seem to be working great. I was wondering, what's the process for a user to add a NucContent track? We'd like users to be able to add these things from the UI. For example, they might not have control over their config file and need to add this as a session track. Maybe a top-level menu item or a Linear Genome View menu item to add a NucContent track for a certain assembly would be good. |
When the plugin was first developed last year I was able to add the track
manually through the Add Track interface, and I was not aware that had
become not possible. Now when I try to do it I get an error about unknown
adapter type. It appears there's some part of the interface (as in JS
interface, not UX) that I am failing to implement appropriately. Is there
another external plugin that implements its own adapter type in addition to
its own track type I might be able to look at for a reference as to what I
should be doing?
A top level menu item might also be very doable, but I would need to infer
some information based on the currently loaded Reference Sequence. That
would definitely make the most common use case much easier, but it feels
like the above interface issue should also probably be solved too.
…--John Rozewicki
On Sat, Jan 29, 2022 at 5:25 AM Garrett Stevens ***@***.***> wrote:
I was able to test this out now, and the adapter/display seem to be
working great. I was wondering, what's the process for a user to add a
NucContent track? We'd like users to be able to add these things from the
UI. For example, they might not have control over their config file and
need to add this as a session track. Maybe a top-level menu item or a
Linear Genome View menu item to add a NucContent track for a certain
assembly would be good.
—
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AH25MTLNMK5ZUU2PGKOCIRLUYL3TPANCNFSM47TXPGMA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I think you likely need to add to our |
Thank you for the example. I was able to add adapter and track guessing
functions so that the track can be added by a user through the UI.
Do you have a similar example or can you link documentation for how to add
a menu item like was discussed previously?
…--John Rozewicki
On Fri, Feb 11, 2022 at 4:17 AM Garrett Stevens ***@***.***> wrote:
I think you likely need to add to our Core-guessAdapterForLocation
extension point. You can see an internal plugin example in the Wiggle
plugin here:
https://github.com/GMOD/jbrowse-components/blob/main/plugins/wiggle/src/index.ts
or the external GDC plugin here:
https://github.com/GMOD/jbrowse-plugin-gdc/blob/master/src/index.ts.
—
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AH25MTNBGZAMK4TTUKR7UYLU2QFMLANCNFSM47TXPGMA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
You can see an example of adding a menu item here: https://github.com/GMOD/jbrowse-plugin-gdc/blob/76e5874740140539ff5b65717027026490986985/src/index.ts#L429-L439 You can also read about the format of menu items here, and the various methods for adding and modifying menu items here. |
I modified the the plugins.json to add my plugin (along with a screenshot) per the request from Robert Buels via e-mail.