Genentech / pviz

Pviz
Other
69 stars 22 forks source link

Multiple sequences in a single viewer #7

Open stared opened 9 years ago

stared commented 9 years ago

Maybe I am missing something obvious, but is it possible yo have multiple sequences in a single viewer?

I need to compare 2-3 protein sequences at once. Current viewer looks nifty (especially with mouseover zoom + selection zoom), but while it is possible to add other annotations, I didn't find a way to add more sequences.

alexmasselot commented 9 years ago

Hei Piotr It's not possible as is. But if we you have a reference sequence. You can add another one, as a list of feature of type 'altSequence' Then have a custom display feature to display this altSequence, where it's just plotting the character.

If the sequence are not too large (not something like 100k long), that should be straightforward

Does it make any sense to you? Alex

stared commented 9 years ago

Thanks Alex!

Sequences of something like 300 aminoacids.

However, if I need to reimplement everything (including this on-hover zoom) them I am afraid that it's simpler to write a similar widget on my own than trying to replicate everything.

alexmasselot commented 9 years ago

No you don't at all. I try to have a check at that once I'm on my laptop. That is pretty straightforward Alex On Jun 15, 2015 3:57 PM, "Piotr Migdał" notifications@github.com wrote:

Thanks Alex!

Sequences of something like 300 aminoacids.

However, if I need to reimplement everything (including this on-hover zoom) them I am afraid that it's simpler to write a similar widget on my own than trying to replicate everything.

— Reply to this email directly or view it on GitHub https://github.com/Genentech/pviz/issues/7#issuecomment-112079948.

stared commented 9 years ago

That would be great!

alexmasselot commented 9 years ago

http://bl.ocks.org/alexmasselot/d410208abc1b618d1f51

Is that making any sense? Alex

On Mon, Jun 15, 2015 at 4:14 PM, Piotr Migdał notifications@github.com wrote:

That would be great!

— Reply to this email directly or view it on GitHub https://github.com/Genentech/pviz/issues/7#issuecomment-112083730.

Alexandre Masselot

http://alexandre-masselot.blogspot.ch http://alexandre-masselot.blogspot.com// http://alexandre-masselot.blogspot.ch/ http://mtroopgoeswest.blogspot.ch/

stared commented 9 years ago

Thanks! But actually I having the biggest problem with with on-hover zoom (this LPPGA) - so to have it for both sequences.

screen shot 2015-06-16 at 16 44 03

alexmasselot commented 9 years ago

Hei Piotr Yeaaa, I see. Therefore it's a slighly biggest challenge. That's the problem with proposing fancy features (Ok, I was proud of this one) Alex

On Tue, Jun 16, 2015 at 4:46 PM, Piotr Migdał notifications@github.com wrote:

Thanks! But actually I having the biggest problem with with on-hover zoom (this LPPGA) - so to have it for both sequences.

[image: screen shot 2015-06-16 at 16 44 03] https://cloud.githubusercontent.com/assets/1001610/8185841/f1d7b396-1446-11e5-9186-9f7a0801b699.png

— Reply to this email directly or view it on GitHub https://github.com/Genentech/pviz/issues/7#issuecomment-112455811.

Alexandre Masselot

http://alexandre-masselot.blogspot.ch http://alexandre-masselot.blogspot.com// http://alexandre-masselot.blogspot.ch/ http://mtroopgoeswest.blogspot.ch/

stared commented 9 years ago

@alexmasselot And you should be proud! (It serves as a great inspirations!)

In any case, I ended up reimplementing it on my own. (Plus, as I am likely to be asked to add more custom features.)

http://jsfiddle.net/stared/34wn5we9/ (of course there are a few more things I need to fix/tweak/add) screen shot 2015-06-18 at 20 41 32

alexmasselot commented 9 years ago

Waoow! You did it great! Having fun with d3 is good.

Alex

On Thu, Jun 18, 2015 at 8:46 PM, Piotr Migdał notifications@github.com wrote:

You should be proud! (It serves as a great inspirations!)

In any case, I ended up reimplementing it on my own. (Plus, as I am likely to be asked to add more custom features.)

http://jsfiddle.net/stared/34wn5we9/ (of course there are a few more things I need to fix/tweak/add) [image: screen shot 2015-06-18 at 20 41 32] https://cloud.githubusercontent.com/assets/1001610/8239169/77e84e00-15fa-11e5-8f8a-8b0685d1b7c8.png

— Reply to this email directly or view it on GitHub https://github.com/Genentech/pviz/issues/7#issuecomment-113254791.

Alexandre Masselot

http://alexandre-masselot.blogspot.ch http://alexandre-masselot.blogspot.com// http://alexandre-masselot.blogspot.ch/ http://mtroopgoeswest.blogspot.ch/