Closed AMCalejandro closed 1 year ago
This relates to #114
I've now updated construct_colmap
to take the arg N=
, which is the column name mapping tho the total sample size column.
@AMCalejandro since your N is stored within each row of your full summary stats, I think all you need to do is supply "N" to the N
arg in construct_colmap
(which also happens to be the default):
columnsnames = echodata::construct_colmap(munged= FALSE,
CHR = "CHR", POS = "POS",
SNP = "SNP", P = "P",
Effect = "BETA", StdErr = "SE",
A1 = "A1", A2 = "A2", Freq = "FREQ",
N = "N",
N_cases = NULL, N_controls = NULL,
proportion_cases = NULL,
MAF = "calculate",
tstat = NULL)
Then you can just leave the default arg for compute_n
:
finemap_loci(..., compute_n="ldsc", ...)
Because "N" is already a column in your full sumstats, echolocatoR
won't try to impute N using MungeSumstats
. Thus the compute_n=
arg will be ignored anyway.
1. Bug description
I am struggling with the N number on a quant GWAS e in echolocatoR.
2. Reproducible example
Code to run echolocator with construct_colmaps
Note Apart from the coe you see below, I also tried
Defining colmaps
Running echolocatoR
Console output
Data
NOTE Please note in the input that the MAF is not being inferred from Freq column
3. Session info