Comments (4)
We have run pcrelate on larger numbers of samples by calling its sub-functions separately, which also allows for running sample blocks in parallel on a compute cluster; see #38 for a description of how to do it. This allows filtering of the results for each block to only keep pairs above a certain kinship threshold before combining them.
We should really add this threshold option to the pcrelate
function so it can be done more easily, but it might be a while before we have time to do that.
from genesis.
Thank you Stephanie for suggesting the workaround. As I intend to keep all the pairwise kc rows, I tried an alternative approach: basically I use a list of data table to hold kinBtwn and write kinBtwn out to a file after the pcrelate call.
I browsed the post processing codes for kinBtwn (skipped the ones that are applicable to small sample size), both "correct k2 for HW departure" and "correctK0" appear to be doing row based corrections which does not need info from all the other pairs in the table. So I just run each of my kinBtwn data table through these corrections.
I tested this on a smaller dataset with both standard pcrelate and my custom pcrelate, their kinBtwn table looked identical after resorting by ID1 and ID2. Though my testing might not be sufficient.
Since my knowledge of pcrelate is very limited, is there any pitfall that I might have overlooked? I plan to only use mine when sample size is > ~65K.
Thank you for your time!
from genesis.
The correctK0
function is certainly fine to be called by block as it operates only on each row.
The correctK2
function is also fine, as long as you also have the estimated kinSelf
data loaded for each sample in the pair -- the f
estimates from kinSelf
are used as part of the correction.
from genesis.
Thank you for confirming. yes, the full kinSelf data table is always passed to correctK2 which should cover each sample in the pair for each of my kinBtwn data tables.
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
- Adding functions to perform meta-analysis HOT 2
- errors trying to use makeSparseMatrix HOT 5
- 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.