hammerlab / immuno

Use somatic mutations to choose a personalized cancer vaccine (tumor-specific immunogenic peptides)
Apache License 2.0
14 stars 3 forks source link

Can't select peptide sequences #86

Open iskandr opened 10 years ago

iskandr commented 10 years ago

Currently, each letter is a distinct SVG element, which makes highlighting go insane. Would like to be able to copy peptides (and substrings of peptides).

ihodes commented 10 years ago

(For posterity, Alex and I already discussed) this is tricky with the way we're using SVG. It is possible to select text, it's just very tricky.

Possible fix would be rendering just plain text on top of the sequence (which is a bunch of <text>s, each with its own number) and setting opacity: 0 on it. This may not be the best for performance.