GithubHelp home page GithubHelp logo

Comments (9)

pcarbo avatar pcarbo commented on August 10, 2024

@dp0b Would it be possible to share the files you are using in the gemma command above so that I can reproduce your results? I will try to figure out why you are getting this error---if it is a bug in GEMMA, a data formatting problem, etc.

from gemma.

dp0b avatar dp0b commented on August 10, 2024

Hi Peter,
So the example is using is the mouse files you provide in the example when downloading the source code. I cant upload the grm in second format on this as its to large to upload on this. This was howver generated using plink and sorted to resemble the output in the manual of
id1 id1
id1 id2
id1 id3
id2 id2
id2 id3

the following commands were used

plink --cow --bfile mouse _hs1940 --make-grm-gz no-gz --nonfounders --out mouse_plinkgcta
awk '{print $2,$1,$4}' mouse_plinkgcta.grm > temp.txt
sort -nk1 -nk2 temp.txt > mouse_plinkgctasorted.txt
./gemma.linux -bfile mouse_hs1940 -km 2 -k mouse_plinkgctasorted.txt  -lmm 2 -o mouse_plinkgctasorted

I hope that is of help. I do wonder is it something with line length as when I tried this with 100 samples from the mouse example it worked.

from gemma.

pcarbo avatar pcarbo commented on August 10, 2024

@dp0b I have not used the -km 2 option before but my guess is that you have to give the sample ids in the first two columns, not the row indices of the samples. For example, the first line of the mouse_plinkgctasorted.txt file should be A048005080 A048005080 8.923316e-01. Can you try this and see if it works for you?

from gemma.

dp0b avatar dp0b commented on August 10, 2024

Aghh yes, sorry about. Thank you very much for your help.

I was also wondering about the weights file? I have a weight calculated as effective record contribution (ERC) which ranges from 0.1 to 804. I have tested a few versions of including this as weight but would like your input as to what should be the correct version. Does the weight value need to be less than one? I have tried including just the erc as is, a decimal of the erc-so divide by 1000, the reciprocal , and 1-ERC/1000. The latter seems to work best but if you have any information on how the residual weights should be construed it would be much appreciated.

Thanks for your help thus far.

from gemma.

pcarbo avatar pcarbo commented on August 10, 2024

@dp0b Are you referring to the -widv option in GEMMA?

from gemma.

dp0b avatar dp0b commented on August 10, 2024

Sorry yes I am,if you have any information on the format they should be in it would be much appreciated

from gemma.

xiangzhou avatar xiangzhou commented on August 10, 2024

The weight file contains a column of positive values to be used as weights for residuals. Every weight corresponds to an individual, and a high weight represents high residual error variance for this individual. The file is similar to the phenotype file with one phenotype or the covariate file with one covariate.

from gemma.

pcarbo avatar pcarbo commented on August 10, 2024

@xiangzhou I added this description to gemma -h and to the PDF manual in commit 3a06aee.

from gemma.

pjotrp avatar pjotrp commented on August 10, 2024

I think we can close this?

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.