How To Create Mutation Diagram In R Or In Any Tools?
9
42
Entering edit mode
11.8 years ago
henryvuong ▴ 810

Please let me know any tools or R packages that can create a mutation diagram showing mutations in protein domains like this figure from the MSKCC cBio Cancer Genomic Portal? Thanks in advance
enter image description here

mutation domain r • 45k views
ADD COMMENT
3
Entering edit mode

Search your favorite search engine for "lollipop plot" or build your own, as described in another answer.

ADD REPLY
5
Entering edit mode

Thank all for the answers. Based on your suggestion, I found the R package MethVisual for visualization and exploratory statistical analysis of DNA methylation profiles by Arie Zackay and Christine Steinhoff. It will give me some direction to build my own code.

ADD REPLY
0
Entering edit mode

Hi did you come up with something good? I looked at MethVisual, but it doesn't seem really straightforward to get to the cBio picture from there... Thanks if you can share some code!

ADD REPLY
0
Entering edit mode

Please PM me your email.

ADD REPLY
0
Entering edit mode

I have been confused by the method of plotting mutations. Could you share your code with me? Thank you very much!

ADD REPLY
2
Entering edit mode

I'm not aware of a specific package but I have made something very similar to this just using base graphics, i.e. rect, after moving the x-axis down with mgp, plot with type="h" for the vertical lines... it was quite straightforward.

ADD REPLY
0
Entering edit mode

Could you share the code to do the same.

Thanks
Saurabh

ADD REPLY
0
Entering edit mode

Could you share the code to do the same

Thank U
Daniel

ADD REPLY
0
Entering edit mode

Related post at StackOverflow:

ADD REPLY
14
Entering edit mode
9.0 years ago
qiuworld.ou ▴ 140

Bioconductor package trackViewer gives beautiful lolliplot.

lolliplot trackViewer circle

ADD COMMENT
13
Entering edit mode
10.2 years ago
jeremy ▴ 130

Pfam provides an online tool to not only generate the domain information in JSON format, but to draw the lollipop diagram using javascript as well. They have more information here.

IMHO, not as pretty as cBioPortal's but it gets you close to a solution.

EDIT / SHAMELESS PLUG: After seeing the data available and how easy it'd be, I made my own quick tool to fetch the data and draw the diagram for me in a style similar to cBioPortal - feel free to fork it and add features: https://github.com/pbnjay/lollipops

Example output (w/ labels per the comments)

TP53 w/ 2 mutations

ADD COMMENT
0
Entering edit mode

This is pretty badass. Thanks!

The only thing I wish it had was an option to show the mutation syntax provided on top of the lollies (perhaps at a 45 degree angle).

ADD REPLY
0
Entering edit mode

Just pushed an update with the labels for ya - added an image to my answer above to show it off.

ADD REPLY
0
Entering edit mode

The tool is amazing. Thank you very much! Why the counts do not show up when I specifiy @2? it turns out the 45 degree angle only work for svg file but not for png, right?

ADD REPLY
0
Entering edit mode

Hi there, I am currently using your github code and I am wondering if it is possible to change the text - for example changing P53 DNA-binding domain to something shorter.

ADD REPLY
0
Entering edit mode

amazing tool. I have a few mutations that are very close by. Is there a way to prevent overlapping of the labels?

Thanks

ADD REPLY
10
Entering edit mode
10.2 years ago
jeffk8900 ▴ 130

The cBIO portal team recently released a web based tool to generate lollipop diagrams.

http://www.cbioportal.org/public-portal/mutation_mapper.jsp

ADD COMMENT
0
Entering edit mode

The problem with mutation mapper is that the mutations are mapped to the longest transcript. Meaning that if you have a gene with multiple transcripts, the mapping to the domains of the shorter transcripts will be completely wrong!

ADD REPLY
6
Entering edit mode
9.9 years ago
Michi ▴ 990

Hi

We found ourselves in the same need, we wanted such a plot (JavaScript). Thus, I add our solution, Mutations Needle Plot. The library creates an SVG image (with D3), which then may be downloaded.

You will need npm in order to be able to install & run the library.

Examples may be found in the snippets folder or also the index.html - The one displayed here below

Mutation Needle Plot (muts-needle-pot)

ADD COMMENT
0
Entering edit mode

@Michi: is there a way to use snpEff VCF as input to generate mutations needle plot

ADD REPLY
0
Entering edit mode

Short answer, No. Long answer: Of course, but you would have to format the mutations a little bit :)

ADD REPLY
4
Entering edit mode
10.2 years ago

My colleague @SolenaLS recently asked me to write something like this: (uniprot+SVG+javascript : ) http://lindenb.github.io/pages/uniprot/paintsvg.html

ADD COMMENT
4
Entering edit mode
8.8 years ago
zlskidmore ▴ 290

There's a developmental version of this type of diagram using R here, the function is called lolliplot.

Also in bioconductor devel branch. An example visual can be viewed from the vignette found here.

ADD COMMENT
0
Entering edit mode

Hi, do you know how to change protein framework by yourself rather than the default version from ensembl? Because I think the default version is too complicated and not simple and direct enough.

ADD REPLY
3
Entering edit mode
9.0 years ago

Dear,

Colleagues have listed rectangular representations. I have recently published a circular version of such plots. Here is the website: http://i-pv.org/

And here is an example: http://i-pv.org/FOXP2.html

You can also search for I-PV for the posts in Biostar.

I hope this helps

ADD COMMENT
2
Entering edit mode
11.8 years ago
Pappu ★ 2.1k

Ensembl also gives similar plot

ADD COMMENT

Login before adding your answer.

Traffic: 1174 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6