Comments (9)
@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.
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.
@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.
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.
@dp0b Are you referring to the -widv
option in GEMMA?
from gemma.
Sorry yes I am,if you have any information on the format they should be in it would be much appreciated
from gemma.
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.
@xiangzhou I added this description to gemma -h
and to the PDF manual in commit 3a06aee.
from gemma.
I think we can close this?
from gemma.
Related Issues (20)
- Parsing input file '' failed in function AnalyzeBimbamGXE
- Enforce failed for number of analyzed individuals equals 0. in src/param.cpp at line 2073 in ProcessCvtPhen HOT 2
- long haplotype as population structure
- basic usage doesn't work
- Gemma run-time for Estimate Relatedness Matrix calculation
- very low number of analyzed SNPs/var
- The input files includes 26 linkage groups but the output files only includes 22 linkage group
- Categorical covariates
- Pve is .999 HOT 1
- gemma-wrapper:279:in `<main>': Expected GEMMA -a genotype file switch (RuntimeError)
- Got a nan in the p-value results HOT 1
- gsl: newton.c:88: ERROR: function value is not finite 3.08%
- GSL ERROR: function value is not finite in brent.c at line 58 errno 9
- WARNING: Brent did not converge
- Why the diagonal of relatedness matrix is not equal to 1 or a constant value? HOT 1
- The problem of filtering snp parameters
- ERROR: Enforce failed for Problem reading FAM file (phenotypes do not match geno file) in src/gemma_io.cpp at line 600 in ReadFile_fam GEMMA 0.98.3 (2020-11-28) by Xiang Zhou and team (C) 2012-2020
- Identical P-Values at end of run HOT 1
- BIMBAM format (preferred)
- ##ERROR: FAILED: Parsing input file 'mikk_small_hapVariants_updated_noheaders.csv' failed in function ReadFile_geno in src/gemma_io.cpp at line 744, for GEMMA 0.98.5 (2021-08-25) by Xiang Zhou, Pjotr Prins and team (C) 2012-2021
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gemma.