Giter Site home page Giter Site logo

Comments (3)

smgogarten avatar smgogarten commented on July 17, 2024

pcair should return a list with $rels NULL in the case of no relatives. Could you provide some more context (what code did you run leading up to this error), and also sessionInfo()?

from genesis.

seunghun23 avatar seunghun23 commented on July 17, 2024

Below is the code, and I can not provide with sessionInfo() for now because one of my
colleague ran the script, and he did with a small vcf of his which includes only 11 samples (probably all unrelated with each other). The same script ran fine with larger vcfs before.


seqVCF2GDS(vcf_input,"temp.gds", verbose=FALSE)
gds<- seqOpen("temp.gds")

snpset <- snpgdsLDpruning(gds, method="corr", slide.max.bp=10e6,
ld.threshold=sqrt(0.1), verbose=FALSE)
pruned <- unlist(snpset, use.names=FALSE)
king <- snpgdsIBDKING(gds, snp.id=pruned, verbose=FALSE)
kingMat <- king$kinship
dimnames(kingMat) <- list(king$sample.id, king$sample.id)

pcs <- pcair(gds,
kinobj=kingMat, kin.thresh=2^(-9/2),
divobj=kingMat, div.thresh=-2^(-9/2),
snp.include=pruned)

from genesis.

smgogarten avatar smgogarten commented on July 17, 2024

pcairPartition (the function that selects an unrelated set) will run on a sample set that small (even with no relatives), so I suspect the problem might have arisen farther upstream in the script (as in, the inputs to the pcair function were not valid). But 11 samples is such a small number that I'm not sure it makes sense to run this analysis on them.

from genesis.

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.