Coder Social home page Coder Social logo

Comments (6)

bmansfeld avatar bmansfeld commented on July 28, 2024

Hi,
You are showing me the head(df) but running the command on df_filt.
df_filt <- runGprimeAnalysis(SNPset = df_filt, windowSize = 1e6, outlierFilter = "deltaSNP")
Did you filter snps already?
How many rows in the df_filt data frame? Just based on the error msg it seems that the df_filt is empty?
Or maybe one of the Chrms is empty.
Something is strange with the data.
Ben

from qtlseqr.

cjchen5 avatar cjchen5 commented on July 28, 2024

Hi Ben,
Thank you! I guess one of the Chrms is empty after filtering. I will check it later.
BTW, I have another question for Gprime plot. The deltaSNP plot from same data is continuous but Gprime plot have a weird gap near the peak. Could you tell me what might cause the gap in Gprime plot?

from qtlseqr.

bmansfeld avatar bmansfeld commented on July 28, 2024

Hi,
The default y axis limits are -0.6 to 0.6, you have a nice peak there going past that range so it's getting cut off. You are probably also getting a warning message about values not being mapped.
To remedy this you should add + ylim(-1,1) or some other range after your plotQTLStats() function.
Ben

from qtlseqr.

cjchen5 avatar cjchen5 commented on July 28, 2024

Thanks! But when I change my plot code to:
plotQTLStats(SNPset = df_filt, var = "deltaSNP", plotIntervals = TRUE, + ylim(-1,1))
Error in ylim(-1, 1) : could not find function "ylim"
Could you please tell me more detail of add + ylim(-1,1)?
Thank you very much!

from qtlseqr.

bmansfeld avatar bmansfeld commented on July 28, 2024

The function is a wrapper for ggplot therefore you need to add + ylim() after the function.
I.e. plotQTLStats(....) + ylim(..)
Look at the ggplot package to understand more.
Ben

from qtlseqr.

cjchen5 avatar cjchen5 commented on July 28, 2024

Thank you so much!
When I library("ggplot2") first and then plotQTLStats(....) + ylim(..) it works.

from qtlseqr.

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.