GithubHelp home page GithubHelp logo

Comments (7)

kindlychung avatar kindlychung commented on September 1, 2024

Would you mind posting a small dataset so that I can reproduce the error? Thanks!

from collapsabel2.

mmoisse avatar mmoisse commented on September 1, 2024

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.

kindlychung avatar kindlychung commented on September 1, 2024

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.

kindlychung avatar kindlychung commented on September 1, 2024

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.

kindlychung avatar kindlychung commented on September 1, 2024

Please try the latest master and let me if there is a problem.

from collapsabel2.

kindlychung avatar kindlychung commented on September 1, 2024

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.

mmoisse avatar mmoisse commented on September 1, 2024

With the latest master it runs fine. Tx!

from collapsabel2.

Related Issues (3)

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.