Coder Social home page Coder Social logo

Problem in G G` statistic calculation: Error in locfit::locfit(Stat ~ locfit::lp(POS, h = windowSize, deg = 0), : fewer than one row in the data about qtlseqr HOT 7 CLOSED

bmansfeld avatar bmansfeld commented on July 28, 2024
Problem in G G` statistic calculation: Error in locfit::locfit(Stat ~ locfit::lp(POS, h = windowSize, deg = 0), : fewer than one row in the data

from qtlseqr.

Comments (7)

bmansfeld avatar bmansfeld commented on July 28, 2024

Hi,
I think the problem is due to the assembly and the window size.
But just to make sure, what happens if you run runQTLseqAnalysis() first?
Does it work? after it works can you run Gprime on the new df that comes out of runQTLseqAnalysis?

If not try lowering the window size and perhaps try discarding many of the very small contigs.
Let me know what you find out..
I'll try to help as best as possible
Ben

from qtlseqr.

anjugiri avatar anjugiri commented on July 28, 2024

Hi Ben,

Thank you for your response.

Lowering the window size doesn't help, I will try by dropping some contigs.
QTLseqAnalysis runs without error, and attached above (df_filt) is the df frame generated after running QTLseqAnalysis as follows:

df_filt <- runQTLseqAnalysis(df_filt, windowSize = 1e6,

  •                                popStruc = "F2",
    
  •                                bulkSize = c(78,103), replications = 10000,
    
  •                                intervals = c(95, 99) )
    

The Gprime is on the df df_filt that comes out of the runQTLseqAnalysis, but doesn't seem to help.

I will let try more with additional filtering in the contigs and will let you know.

Thank you,
Anju

from qtlseqr.

bmansfeld avatar bmansfeld commented on July 28, 2024

Hey Anju,
Did you figure this out?
If not and you feel comfortable sharing your .table file I can take a look.
Let me know,
Ben

from qtlseqr.

anjugiri avatar anjugiri commented on July 28, 2024

C32_w_parents_allsites.vcf.table.zip

Ben, Thank you very much. Here is the data frame I worked with, I tried with several different files but got into the same error. To start, I just filtered to remove NAs from the file.

from qtlseqr.

anjugiri avatar anjugiri commented on July 28, 2024

Never mind. The issue get solved after filtering. Thank you very much, the package is very helpful.

from qtlseqr.

bmansfeld avatar bmansfeld commented on July 28, 2024

Thanks for letting me know and for the good feedback!
Would you mind explaining what you think the issue was.
This way if other people have a similar problem they can see what solved it.
Thanks,
Ben

from qtlseqr.

anjugiri avatar anjugiri commented on July 28, 2024

Some of the contigs were very short (in Kbs) and the window in them had very few SNP, I did filter for windows having at least 5 SNP which helped to solve this issue. Thank you for your suggestion.

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.