Comments (3)
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.
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.
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)
- ERROR:unused arguments (two.stage = TRUE, norm.option = "all", rescale = "residSD") HOT 2
- Error when running the pcrelate function HOT 2
- High Memory Consumption with Large Dataset in PC-Relate HOT 1
- Conditional analysis HOT 1
- HOW to FIX - PCAir excludes all my SNPs because there is no chromosome information HOT 1
- Error using assocTestAggregate HOT 1
- Issue with PCAir - Segmentation fault (core dumped) HOT 1
- Issue: Running PCAir on 140K individuals HOT 1
- pcrelate: error with rbindlist() HOT 1
- SPA association tests are incorrect for non-mixed models HOT 1
- `fitted.values` in non-mixed null models are not what we expect
- Error in assocTestSingle() results when covariate is confounded with SNP genotype. HOT 6
- pcrelateToMatrix slow on 50k samples HOT 10
- fitNullModel doesn't converge when provided a list of matrices with more than 1 matrix HOT 3
- Error in seqVCF2GDS(vcf.files, gds.file, verbose = FALSE) HOT 1
- correctK2() drops samples under specific conditions HOT 1
- Estimate PVE HOT 1
- add check in varCompCI that family is gaussian
- pcrelate REDUCE error while calculating individual AF betas HOT 8
- analysis pipeline for chromosome X HOT 1
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 genesis.