joiningdata / lollipops

Lollipop-style mutation diagrams for annotating genetic variations.
GNU General Public License v3.0
182 stars 70 forks source link

Options for Color and Size selection #5

Closed sararselitsky closed 9 years ago

sararselitsky commented 9 years ago

I am working with mutation data from multiple cancer types and I would like to plot the mutations of multiple types on one protein and have the color indicate the the different cancer type. Can you alter lollipops so this is possible? Thank you!

pbnjay commented 9 years ago

how would you see this working? i think it would be simplest if you just provided the colors up front, versus making the plotter map the cancer type names to colors internally. I can add an input style where you can just add the color to the encoded mutation (something like "V600M#ff0000" to make V600M a red color?)

sararselitsky commented 9 years ago

Ok, that sounds good.

On Jan 12, 2015, at 1:08 PM, Jeremy Jay notifications@github.com wrote:

how would you see this working? i think it would be simplest if you just provided the colors up front, versus making the plotter map the cancer type names to colors internally. I can add an input style where you can just add the color to the encoded mutation (something like "V600M#ff0000" to make V600M a red color?)

— Reply to this email directly or view it on GitHub.

pbnjay commented 9 years ago

ok i've added this into the latest release: https://github.com/pbnjay/lollipops/releases/tag/v0.95

sararselitsky commented 9 years ago

Thank you! This will be very helpful in visualizing my data.

On Jan 12, 2015, at 3:28 PM, Jeremy Jay notifications@github.com wrote:

Closed #5.

— Reply to this email directly or view it on GitHub.

sararselitsky commented 9 years ago

I am working with data sets with many samples in each category and sometimes the pileups are too high for this type of visualization. For each location, instead of each sample being represented separately, could one dot for each color be represented, but the size dependent on the number of samples?

On Jan 12, 2015, at 3:28 PM, Jeremy Jay notifications@github.com wrote:

Closed #5.

— Reply to this email directly or view it on GitHub.

pbnjay commented 9 years ago

I've got a version of this, using log-2 scaling (otherwise the single-digits hits are far outweighed by anything over 50.

screen shot 2015-01-14 at 9 14 16am

sararselitsky commented 9 years ago

It looks great! Is it available for download?

pbnjay commented 9 years ago

Just cleaned it up and pushed it out: https://github.com/pbnjay/lollipops/releases/tag/v0.96

sararselitsky commented 9 years ago

I think there is a bug that switches the colors when they are at the sample location.