compute_nsize {MungeSumstats} | R Documentation |
Check for N column if not present and user wants, impute N based on user's sample size. NOTE this will be the same value for each SNP which is not necessarily correct and may cause issues down the line. N can also be inputted with "ldsc", "sum", "giant" or "metal" by passing one or multiple of these.
compute_nsize( sumstats_dt, imputation_ind = FALSE, compute_n = c("ldsc", "giant", "metal", "sum"), force_new = FALSE )
sumstats_dt |
data table obj of the summary statistics file for the GWAS. |
imputation_ind |
Binary Should a column be added for each imputation step to show what SNPs have imputed values for differing fields. This includes a field denoting SNP allele flipping (flipped). Note these columns will be in the formatted summary statistics returned. Default is FALSE. |
compute_n |
How to compute per-SNP sample size (new column "N").
|
list("sumstats_dt"=sumstats_dt)