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

Request: Brush on multiple chromosomes #84

Open
6br opened this issue Oct 30, 2017 · 3 comments
Open

Request: Brush on multiple chromosomes #84

6br opened this issue Oct 30, 2017 · 3 comments

Comments

@6br
Copy link

6br commented Oct 30, 2017

Hello, I am grateful to this library!

I would appreciate it if you would add a support for brush on multiple chromosomes since I would like to provide an interface to select the position from multiple chromosomes. My request is below.

  • Switch a brush to each chromosome on drawing multiple chromosomes.
  • Option to draw multiple chromosomes not only in ascending order but also in the specified order such as chromosome: ['chr8', 'chr6', 'chr7'].
  • Option to draw brush with the initial position such as brush: "chr:start-stop".

And following functions is not a so high priority but convenient for me.

  • onClickChromosomeCallback and onClickAnnotationCallback functions
  • Synteny line among multiple(3<=) chromosomes.
  • Drag and drop to change the order of multiple chromosomes.
  • Zoom, scroll, and reverse chromosomes.

An image is as follows:
example

Thank you,

@eweitz
Copy link
Owner

eweitz commented Oct 30, 2017

@6br, thanks for these feature requests. I'll give your proposals a closer look once I'm done expanding support for cytobands (#83), likely within a few weeks.

In the meantime, if you could describe use cases for these potential enhancements, that would help me prioritize my work. I also accept pull requests!

@6br
Copy link
Author

6br commented Nov 1, 2017

@eweitz, thanks for your reply!

My use cases are following.

  • To select genomic variations in human:

In this case, annotations mean genes, SNPs or SVs, which is shown on each track. Here, I have already selected some chromosomes by annotations of genes such as related to cancer or metabolic pathway.

  1. The karyotypes of selected chromosomes are shown and they should be aligned in the order of chosen because the order is related to the priority of genomic locus to select, I think.

  2. If I set the genomic coordinate in advance, the brush should have been moved there. The selectedRegion of brush should be consistent with the given coordinate in advance.

I am trying to do so (master...6br:master), but it does not seem to work well since it does not preserve the exact genomic coordinates.

  1. By selecting one region from multiple chromosomes with a brush, I can narrow down the SNPs and SVs that exist in the region selected. I will use ideogram.selectedRegion to narrow down the external SNPs table.

  2. Moreover, when I click the annotation of SNPs or SVs, details of these variants will be shown. Since I want to fetch what is clicked, it requires callbacks on annotations.

I think from 1 to 3 is the important part because it seems to be tightly coupled with library's implementation.

I would be pleased if it could help your work.

Regards,

@eweitz
Copy link
Owner

eweitz commented Feb 19, 2018

Option to draw brush with the initial position such as brush: "chr:start-stop"

This is implemented in the new v0.15.0 release. See Brush for an example.

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

2 participants