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

Extract Flanking Sequence for SNPs #2

Open
nathanhaigh opened this issue Jun 21, 2018 · 3 comments
Open

Extract Flanking Sequence for SNPs #2

nathanhaigh opened this issue Jun 21, 2018 · 3 comments

Comments

@nathanhaigh
Copy link

Users would like to be able to extract sequence information flanking a SNP of interest. This is useful for designing KASP markers.

@nathanhaigh
Copy link
Author

This would require implementing a right-click context menu for features derived from a VCF track. The simplest case, would be to simply extract the CS reference sequences +/- 50bp around the SNP.

Would variants that fall within this window also need to be incorporated into the extracted sequence?

@nathanhaigh
Copy link
Author

This should be achievable as stated in GMOD/jbrowse#1088. However, I need to check the proposed solution works for me.

@nathanhaigh
Copy link
Author

So the issue is the CanvasVariants track can't be set to displayMode = collapsed. The following type of code can thus be used:

displayMode             = normal
showLabels              = false
menuTemplate+=json:{}
menuTemplate+=json:{}
menuTemplate+=json:{}
menuTemplate+=json:{"label": "Retrieve flanking sequence", "iconClass" : "dijitIconBookmark", "action" : "contentDialog", "content" : "function(track,feature){return track.browser.plugins.FeatureSequence.callFxn(track, feature); }"}

Now just need to write a plugin, cribbing from FeatureSequence plugin.

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

No branches or pull requests

1 participant