GithubHelp home page GithubHelp logo

highlight SNPs of interest about cmplot HOT 6 CLOSED

yinlilin avatar yinlilin commented on July 17, 2024
highlight SNPs of interest

from cmplot.

Comments (6)

YinLiLin avatar YinLiLin commented on July 17, 2024

Hi, theoretically CMplot can only be used for visualizing the SNP based results, but not for the segments with start and end position, some users just roughly use the mean value of segments to plot. For your problem, please refer to the documents on GitHub, if you would like to highlight some peaks, please firstly pick up the names of the peaks of interest, which are located at the first column of the data, then assign it as a vector to parameter highlight, also to parameter highlight.text if you want to show the full names on the plot, there is no parameter named highlight.gene in CMplot, please refer to the following codes:

CMplot(data, ..., highlight = yourpeaks, highlight.text = yourpeaks)

from cmplot.

devenderarora avatar devenderarora commented on July 17, 2024

Dear YinLiLin,
I am running the script as below:
CMplot(data, ..., highlight = 58.0014, highlight.text = GENE1)
I am getting an error:
No shared SNPs between Pmap and highlight
How to fix this situation?

from cmplot.

YinLiLin avatar YinLiLin commented on July 17, 2024

Try CMplot(data, ..., highlight = GENE1, highlight.text = GENE1)

from cmplot.

devenderarora avatar devenderarora commented on July 17, 2024

I tried with the above mentioned script but ended up with "object GENE1 not found"
Is there any way I can highlight peaks only from xpclr column only. I only have 5 peaks of interest and I can label them manually.

from cmplot.

YinLiLin avatar YinLiLin commented on July 17, 2024

Yes, but you should assign a vector containing all the names of peaks you interest to "GENE" prior to plotting

from cmplot.

devenderarora avatar devenderarora commented on July 17, 2024

Dear YinLiLin,
Thankyou for your great help. I able to fix and highlight the gene of interest on specific peaks.
Regards
Devender Arora

from cmplot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.