mutation-mapper tool

74 views
Skip to first unread message

1191...@zju.edu.cn

unread,
Sep 26, 2019, 7:14:55 AM9/26/19
to cbiop...@googlegroups.com, chenl...@zju.edu.cn

Hi,
We are impressed by your mutation-mapper tool(https://github.com/cBioPortal/mutation-mapper),and we want to quote it in our website,but As shown in the figure below,the functional domain given by the "PFAM Service URL is inconsistent with the results of the actual keratin in the PDB database (since keratin is a fibrous protein, only a paragraph-based crystalline structure is currently available),so we want to change it to genomenexus API(eg.https://www.genomenexus.org/ensembl/canonical-transcript/hgnc/KRT1?isoformOverrideSource=uniprot)  as you do in https://www.cbioportal.org/  ,However,we find it hard to alter it to another URL,because other URL needs different request parameters and different parser of the response data.We want to get a more accurate domain annotation,how can we do it or do you provide new javascript version of Mutation Mapper? Thanks.


Best wishes,



 

Ino de Bruijn

unread,
Sep 26, 2019, 10:40:39 AM9/26/19
to 1191...@zju.edu.cn, cBioPortal for Cancer Genomics Discussion Group, chenl...@zju.edu.cn
Hi!

Glad to hear you like the mutation mapper tool!

We have a new version of the standalone tool:


Which is the one used here:


Hope that helps!

Best wishes,
Ino

--
You received this message because you are subscribed to the Google Groups "cBioPortal for Cancer Genomics Discussion Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cbioportal+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cbioportal/ca01902.97206.16d6c2d5fef.Coremail.11918067%40zju.edu.cn.

1191...@zju.edu.cn

unread,
Sep 26, 2019, 11:23:06 PM9/26/19
to Ino de Bruijn, cBioPortal for Cancer Genomics Discussion Group, chenl...@zju.edu.cn

Hi Ino,

Thanks for your pleasant reply.Is there an example or a doc on how to use it in html?

Best wishes,

Ada 



-----原始邮件-----
发件人:"Ino de Bruijn" <i...@ino.pm>
发送时间:2019-09-26 22:40:25 (星期四)
收件人: 1191...@zju.edu.cn
抄送: "cBioPortal for Cancer Genomics Discussion Group" <cbiop...@googlegroups.com>, chenl...@zju.edu.cn
主题: Re: [cbioportal] mutation-mapper tool

1191...@zju.edu.cn

unread,
Oct 10, 2019, 2:20:24 AM10/10/19
to Ino de Bruijn, cBioPortal for Cancer Genomics Discussion Group, chenl...@zju.edu.cn, jg...@cbio.mskcc.org

Hi Ino,

Sorry to bother you again.When run "npm install --save" on the new version of the mutation-mapper tool,I met the error message(shown in the picture bellow).How to solve the problem?Is there an example or a doc on how to use it in html? Thank you.


Best wishes,

Ada 

 



-----原始邮件-----
发件人:1191...@zju.edu.cn
发送时间:2019-09-27 11:22:56 (星期五)
收件人: "Ino de Bruijn" <i...@ino.pm>

抄送: "cBioPortal for Cancer Genomics Discussion Group" <cbiop...@googlegroups.com>, chenl...@zju.edu.cn
主题: Re: Re: [cbioportal] mutation-mapper tool

Ino de Bruijn

unread,
Oct 10, 2019, 4:20:12 AM10/10/19
to 1191...@zju.edu.cn, cBioPortal for Cancer Genomics Discussion Group, chenl...@zju.edu.cn, jg...@cbio.mskcc.org
Hi Ada,

Thanks for reaching out! One of our engineers is looking into writing some more documentation and will reach out you soon.

Best wishes,
Ino
1570688124031.png
1569477887653.png
image.png

Onur Sumer

unread,
Oct 10, 2019, 10:46:08 AM10/10/19
to 1191...@zju.edu.cn, cbiop...@googlegroups.com, chenl...@zju.edu.cn
Hi Ada, 

react-mutation-mapper is specifically designed to work with react applications. It may not work properly with plain HTML/JS projects. I would suggest creating a new react app by using create-react-app tool: https://github.com/facebook/create-react-app

You can then add the library by typing "yarn add react-mutation-mapper". I would also suggest using the latest beta version (yarn add react-muta...@0.3.0-beta.7). Documentation is not ready yet, but minimally you can initialize a mutation mapper component as follows:

import {MutationMapper} from "react-mutation-mapper";
...
...
public render()
{
return (
<MutationMapper
hugoSymbol="BRCA1"
data={[{
proteinChange: "L347C",
proteinPosStart: 347
}]}
/>
);
}
...
...

Here proteinPosStart value is critical because that position is actually mapped to the lollipop plot.

Alternatively, you can initialize the mutation mapper with a set of mutations with genomic locations only, and enable annotation with Genome Nexus:

import {MutationMapper} from "react-mutation-mapper";
...
...
public render()
{
return (
<MutationMapper
             hugoSymbol="BRCA1"
filterMutationsBySelectedTranscript={true}
data={[{
chromosome: "17",
startPosition: 41246509,
endPosition: 41246509,
referenceAllele: "G",
variantAllele: "-"
}]}
/>
);
}
...
...

Please note that currently you need to set filterMutationsBySelectedTranscript to true to enable the annotation. This is a known issue, and we are planning to add an explicit option to enable/disable annotation with Genome Nexus.

Hope this helps.

Best,
Onur

To view this discussion on the web visit https://groups.google.com/d/msgid/cbioportal/CAOMQCYEU59nELgpXwXoCNA5rZfUL6RKqzbD4j%3D3xoFC2uwHRCA%40mail.gmail.com.

=====================================================================

Please note that this e-mail and any files transmitted from
Memorial Sloan Kettering Cancer Center may be privileged, confidential,
and protected from disclosure under applicable law. If the reader of
this message is not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient,
you are hereby notified that any reading, dissemination, distribution,
copying, or other use of this communication or any of its attachments
is strictly prohibited. If you have received this communication in
error, please notify the sender immediately by replying to this message
and deleting this message, any attachments, and all copies and backups
from your computer.

1191...@zju.edu.cn

unread,
Oct 11, 2019, 1:40:53 AM10/11/19
to Onur Sumer, cbiop...@googlegroups.com, chenl...@zju.edu.cn

Hi Onur,

Thank you for your detailed guidance.I'll try it.If I meet with problems,I may reach out you.Thanks again.

Best,

Ada



-----原始邮件-----
发件人:"Onur Sumer" <s.onur...@gmail.com>
发送时间:2019-10-10 22:45:55 (星期四)
收件人: 1191...@zju.edu.cn
抄送: cbiop...@googlegroups.com, chenl...@zju.edu.cn

1191...@zju.edu.cn

unread,
Oct 11, 2019, 3:51:58 AM10/11/19
to Onur Sumer, cbiop...@googlegroups.com, chenl...@zju.edu.cn

Hi Onur,

I tried the react-mutation-mapper with react applications,and get the page shown bellow,it seems that it lost the CSS style,how can I add the style? In addition,can I get the 3D structure which is shown in https://www.cbioportal.org/mutation_mapper?

Best wishes,

Ada



-----原始邮件-----
发件人:"Onur Sumer" <s.onur...@gmail.com>
发送时间:2019-10-10 22:45:55 (星期四)
收件人: 1191...@zju.edu.cn
抄送: cbiop...@googlegroups.com, chenl...@zju.edu.cn

Li Xiang

unread,
Oct 11, 2019, 10:43:59 PM10/11/19
to 1191...@zju.edu.cn, Onur Sumer, cbiop...@googlegroups.com, chenl...@zju.edu.cn
Hi Ada,

Currently we don't have 3D structure in react-mutation-mapper. For the style, you can try to import these CSS files to your project: " import 'react-mutation-mapper/dist/styles.css';" and "import 'react-table/react-table.css';".

Hope this helps.

Best wishes,
Xiang

1191...@zju.edu.cn

unread,
Oct 11, 2019, 11:52:45 PM10/11/19
to Li Xiang, Onur Sumer, cbiop...@googlegroups.com, chenl...@zju.edu.cn
Hi Xiang,
OK,thank you.We are looking forward to your full document.
Best wishes,
Ada

1191...@zju.edu.cn

unread,
Oct 24, 2019, 4:42:01 AM10/24/19
to Onur Sumer, cbiop...@googlegroups.com, chenl...@zju.edu.cn

Hi Onur,

I have 2 problems,can you help me? 

1.Is there an interface which can choose one mutation by default just as the effect of clicking on a certain mutation in the lollipop line?-the circle on the line in the lollipop enlarged and the table shows only the chosen mutation. (shown as 1.1,1.2,1.3 in the following picture)

2.what does the "Mutation Status" and "ClinVarID" means? how can I custom these fields?(shown as 2 in the following picture)

Thank you.

Best Wishes,

Ada



-----原始邮件-----
发件人:"Onur Sumer" <s.onur...@gmail.com>
发送时间:2019-10-10 22:45:55 (星期四)
收件人: 1191...@zju.edu.cn
抄送: cbiop...@googlegroups.com, chenl...@zju.edu.cn

1191...@zju.edu.cn

unread,
Oct 24, 2019, 4:42:12 AM10/24/19
to Li Xiang, Onur Sumer, cbiop...@googlegroups.com, chenl...@zju.edu.cn

Hi Xiang,

The table style is Ok,but I still has a problems on the drop-down list style(shown in the picture bellow), how can I correct it?

Thank you.

Best Wishes,

Ada




-----原始邮件-----
发件人:"Li Xiang" <wdx...@gmail.com>
发送时间:2019-10-12 04:24:00 (星期六)
收件人: 1191...@zju.edu.cn
抄送: "Onur Sumer" <s.onur...@gmail.com>, cbiop...@googlegroups.com, chenl...@zju.edu.cn

Onur Sumer

unread,
Oct 28, 2019, 6:22:14 AM10/28/19
to 1191...@zju.edu.cn, chenl...@zju.edu.cn, cbiop...@googlegroups.com
Hi Ada,

1) To be able to have an initial selection, you need to set the "selectionFilters" property. For your specific case, you can add a property like this:
selectionFilters={[
    {
type: DataFilterType.POSITION,
values: [182]
}
]}
2) You can customize table columns by using the "mutationTableColumns" property. Here is an example usage: https://github.com/knowledgesystems/msk-insight/blob/218b082aab7d61d9ca07bb06d18fd6e05090b648/client/src/components/MutationMapper.tsx#L134

Hope this helps,
Onur

Onur Sumer

unread,
Oct 28, 2019, 6:26:57 AM10/28/19
to 1191...@zju.edu.cn, Li Xiang, chenl...@zju.edu.cn, cbiop...@googlegroups.com
Hi Ada,

Reducing the font size for the html element that contains your mutation mapper instance may help solving this problem.

--Onur

On Thu, Oct 24, 2019 at 4:41 AM <1191...@zju.edu.cn> wrote:

1191...@zju.edu.cn

unread,
Oct 28, 2019, 10:16:20 PM10/28/19
to Onur Sumer, Li Xiang, chenl...@zju.edu.cn, cbiop...@googlegroups.com

Hi Onur,

OK, thank you for your kind answer.I'll try it.

Best wishes,

Ada



-----原始邮件-----
发件人:"Onur Sumer" <s.onur...@gmail.com>
发送时间:2019-10-28 18:27:41 (星期一)
收件人: 1191...@zju.edu.cn
抄送: "Li Xiang" <wdx...@gmail.com>, chenl...@zju.edu.cn, cbiop...@googlegroups.com
主题: Re: Re: Re: [cbioportal] mutation-mapper tool

1191...@zju.edu.cn

unread,
Oct 29, 2019, 1:25:23 AM10/29/19
to Onur Sumer, chenl...@zju.edu.cn, cbiop...@googlegroups.com

Hi Onur,

The initial selection was implemented at the lollipop,but the corresponding table rows doesn't change.Is there something I miss?

Best

Ada


-----原始邮件-----
发件人:"Onur Sumer" <s.onur...@gmail.com>
发送时间:2019-10-28 18:22:57 (星期一)
收件人: 1191...@zju.edu.cn
抄送: chenl...@zju.edu.cn, cbiop...@googlegroups.com

Onur Sumer

unread,
Oct 30, 2019, 9:41:08 AM10/30/19
to 1191...@zju.edu.cn, chenl...@zju.edu.cn, cbiop...@googlegroups.com
Hi Ada,

I think the problem is related to the mutation data you are passing to the MutationMapper component. Position filters are currently checking only the proteinPosStart values. Ideally we should also check the protein change values. I'll try to improve that.

For now, as a workaround, can you try adding a proteinPosStart field for each mutation you have? So for example for L475P, proteinPosStart value should be 475. Let me know if this approach works. 

~Onur

1191...@zju.edu.cn

unread,
Oct 31, 2019, 9:04:42 PM10/31/19
to Onur Sumer, chenl...@zju.edu.cn, cbiop...@googlegroups.com

Hi Onur,

Thanks for your reply.

Yes,I pass the proteinPosStart value to the MutationMapper component,the data property is like this:'

[{"proteinChange":"K74I","mutationType":"Missense_Mutation","proteinPosStart":"74"},{"proteinChange":"V155G","mutationType":"Missense_Mutation","proteinPosStart":"155"}
...]', for the result,it seems to works the initial selection on the lollipop,but not trigger the table for the change.


Best,

Ada




-----原始邮件-----
发件人:"Onur Sumer" <s.onur...@gmail.com>
发送时间:2019-10-30 21:40:52 (星期三)
主题: Re: Re: Re: [cbioportal] mutation-mapper tool

Onur Sumer

unread,
Nov 1, 2019, 3:15:46 AM11/1/19
to 1191...@zju.edu.cn, chenl...@zju.edu.cn, cbiop...@googlegroups.com
Hi Ada,

proteinPosStart values should be integer, not string. For example, do proteinPosStart: 74 instead of proteinPosStart: "74". This should fix the initial filter problem.

Best,
Onur

1191...@zju.edu.cn

unread,
Nov 1, 2019, 4:28:24 AM11/1/19
to Onur Sumer, chenl...@zju.edu.cn, cbiop...@googlegroups.com

Hi Onur,

Thanks for your reminding,it works!Thank you very much!

Best,

Ada



-----原始邮件-----
发件人:"Onur Sumer" <s.onur...@gmail.com>
发送时间:2019-11-01 15:15:32 (星期五)
主题: Re: Re: Re: Re: [cbioportal] mutation-mapper tool

lulu

unread,
Jun 29, 2020, 2:52:38 AM6/29/20
to Onur Sumer, chenl...@zju.edu.cn, cbiop...@googlegroups.com

Hi Onur,

Sorry to bother you again. I have three more questions about the mutation-mapper tool shown in the picture bellow.

1.How to hide the tracks options?

2.How to hide the table?

3.How the set the UniProt?

I'm looking forward to your reply.

Best wishes,

Ada 



-----原始邮件-----
发件人:1191...@zju.edu.cn
发送时间:2019-11-01 16:27:47 (星期五)
收件人: "Onur Sumer" <s.onur...@gmail.com>
抄送: chenl...@zju.edu.cn, cbiop...@googlegroups.com
主题: Re: Re: Re: Re: Re: [cbioportal] mutation-mapper tool

lulu

unread,
Jul 21, 2020, 11:06:41 AM7/21/20
to cbiop...@googlegroups.com, chenl...@zju.edu.cn, Onur Sumer

Hi,

I have find the way to hide the track option, but I can't find how to hide the table and set the UniProt. Can you help me out? I'm new to react, so I need your help. Thanks. I'm looking forward to hearing from you.

Best wishes,

Ada

-----原始邮件-----
发件人:lulu <lulu...@zju.edu.cn>
发送时间:2020-06-29 14:14:08 (星期一)
主题: Re: Re: Re: Re: Re: Re: [cbioportal] mutation-mapper tool

Onur Sumer

unread,
Jul 21, 2020, 1:28:32 PM7/21/20
to lulu, cbiop...@googlegroups.com, chenl...@zju.edu.cn
Hi Ada,

Make sure to upgrade to the latest version of react-muta...@0.6.3. And then use these 2 properties to hide those components: showTrackSelector and mutationTable

So something like this should work:

    showTrackSelector={false}
    mutationTable={<span />}


I am assuming that you only provide hugoGeneSymbol in your mutation data. To be able to see the Uniprot Id, you need to provide both entrezGeneId and hugoGeneSymbol in your mutation data.

So your mutation data should look like this:

{
    gene: {
        hugoGeneSymbol: "TP53",
        entrezGeneId: 7157
    },
    chromosome: ...,
    ,,,
}

Hope this helps.

-Onur



lulu

unread,
Jul 23, 2020, 2:27:57 AM7/23/20
to Onur Sumer, cbiop...@googlegroups.com, chenl...@zju.edu.cn

Hi Onur,

It works! Thanks for your help.

Best wishes,

Ada



-----原始邮件-----
发件人:"Onur Sumer" <s.onur...@gmail.com>
发送时间:2020-07-22 01:28:16 (星期三)
收件人: lulu <lulu...@zju.edu.cn>
抄送: cbiop...@googlegroups.com, chenl...@zju.edu.cn
主题: Re: Re: Re: Re: Re: Re: Re: [cbioportal] mutation-mapper tool
Reply all
Reply to author
Forward
0 new messages