freezecoder / mutsneedle

R package for viewing mutation needle lollipop plot widgets
11 stars 1 forks source link

Mutation name #1

Open joannananana opened 6 years ago

joannananana commented 6 years ago

Hi,

Do you think that you could add the option of viewing the name of the mutation that is represented in each dot?

Thanks a lot!

freezecoder commented 6 years ago

Hi

Do you mean this is shown as the default view? If you mouse hover over the dot it will show the mutation ID of that field you used e.g. P72R. Am I understanding your request correctly?

joannananana commented 6 years ago

No, the problem is that when I hover over the dot it shows only the quantity (value) and category of the mutation, which was expected, as the data frame of the mutations imported, consisted of those two columns along with the coords. I don't understand what my mistake is.

Στις Πέμ, 23 Αυγ 2018 στις 6:24 μ.μ., ο/η freezecoder < notifications@github.com> έγραψε:

Hi

Do you mean this is shown as the default view? If you mouse hover over the dot it will show the mutation ID of that field you used e.g. P72R. Am I understanding your request correctly?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/freezecoder/mutsneedle/issues/1#issuecomment-415458214, or mute the thread https://github.com/notifications/unsubscribe-auth/Af2gJdR1DUejDH8F84vwIZS7e9TVYmYoks5uTsk_gaJpZM4WJuN0 .

freezecoder commented 6 years ago

OK I see the issue here. What I typically do is rerun mutsneedle() with a different R data frame where the 'category' field is the amino acid change field or HGSVSP e.g. P72R. The 'coord' and 'gene' fields remans unchanged but the 'value' field is recalculated as the frequency of the amino acid change. Because I typically embed these in shiny apps I toggle between category and mutation name. I hope this helps if you try it out.

joannananana commented 6 years ago

Thank you very much for the instant response! I will try it and let you know!

Στις Πέμ, 23 Αυγ 2018 στις 8:46 μ.μ., ο/η freezecoder < notifications@github.com> έγραψε:

OK I see the issue here. What I typically do is rerun mutsneedle() with a different R data frame where the 'category' field is the amino acid change field or HGSVSP e.g. P72R. The 'coord' and 'gene' fields remans unchanged but the 'value' field is recalculated as the frequency of the amino acid change. Because I typically embed these in shiny apps I toggle between category and mutation name. I hope this helps if you try it out.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/freezecoder/mutsneedle/issues/1#issuecomment-415508302, or mute the thread https://github.com/notifications/unsubscribe-auth/Af2gJU5vw6gUrncUmmtL7E3pr2Ab8uzEks5uTuqHgaJpZM4WJuN0 .