Comments (7)
Would you mind posting a small dataset so that I can reproduce the error? Thanks!
from collapsabel2.
I used your dataset (https://bitbucket.org/kindlychung/collapsabel/downloads/testfiles.zip) to cause the error. If you follow all the terminal and R steps you should get the same errors:
from collapsabel2.
Following PLINK conventions, all phenotypes must be numerically coded, including missing values, in the alternate phenotype file. The default missing value is -9.
from collapsabel2.
In the case of binary phenotypes, 1 means unaffected, 2 means affected, both 0 and -9 stand for missing. I will update the doc.
from collapsabel2.
Please try the latest master and let me if there is a problem.
from collapsabel2.
Here is what I tested:
library(CollapsABEL)
rbed_info = rbedInfo(bedstem = "test", TRUE)
pheno <- read.table("test.phe", header=T)
pheno$gc <- pheno$gc + 1
pheno$gc[1] <- -9
write.table(pheno, file="test.12NA.phe", quote=F, row.names=F, col.names=T, sep=" ")
pl_gwas = plGwas(rbed_info,
pheno = "test.12NA.phe",
pheno_name = "gc",
covar_name = "sex,age",
gwas_tag = "test_gc_sex_age")
gcdh_res = runGcdh(pl_gwas, n_shift = 5)
from collapsabel2.
With the latest master it runs fine. Tx!
from collapsabel2.
Related Issues (3)
- Support .frq.gz HOT 7
- Set tmp file path HOT 2
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 collapsabel2.