GithubHelp home page GithubHelp logo

Comments (8)

pjotrp avatar pjotrp commented on August 10, 2024

Oh yes, the other tools using K don't seem to mind. They don't read the full file. So, this may have been happening before, but it did not matter for the result.

from gemma.

pcarbo avatar pcarbo commented on August 10, 2024

@pjotrp Should I close this? It seems that it is not a bug after all?

from gemma.

pjotrp avatar pjotrp commented on August 10, 2024

No, I need to figure out what happened first.

from gemma.

pjotrp avatar pjotrp commented on August 10, 2024

Getting the same bug on my laptop. Test on master branch fails with

testCenteredRelatednessMatrixK
Reading Files ... 
## number of total individuals = 1940
## number of analyzed individuals = 1410
## number of covariates = 1
## number of phenotypes = 1
## number of total SNPs = 12226
## number of analyzed SNPs = 10768
Calculating Relatedness Matrix ... 
Reading SNPs  ==================================================100.00%
## total computation time = 0.35778 min 
ASSERT:expected:<24.9799> but was:<29.691>

and

wc -l test/output/mouse_hs1940.cXX.txt 
1940 test/output/mouse_hs1940.cXX.txt

it appears it is outputting the number of individuals total, rather than the number used. @pcarbo what is the size of your output file?

from gemma.

pcarbo avatar pcarbo commented on August 10, 2024

@pjotrp I get an output file mouse_hs1940.cXX.txt with 1940 lines. I think the "number of analyzed individuals" is misleading (and confusing!) because it is about the phenotype data, which is irrelevant for computing the relatedness matrix. If you look at the phenotype file you will see that there are indeed 530 missing phenotype values:

$ cut -f 1 mouse_hs1940.pheno.txt | grep NA | wc -l
530

In any case, this doesn't explain the error you are getting.

from gemma.

pjotrp avatar pjotrp commented on August 10, 2024

Cool, I swear I have seen a smaller K file. Anyway, we are getting different answers on different systems, so I am looking into that.

from gemma.

pjotrp avatar pjotrp commented on August 10, 2024

Turns out that the output files are identical, but that awk gives a different result on different machines! Not a gemma problem - I'll fix the test.

from gemma.

pcarbo avatar pcarbo commented on August 10, 2024

@pjotrp Interesting, thanks!

from gemma.

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.