Closed AMCalejandro closed 1 year ago
@AMCalejandro can you share your topSNPs
object? I'm wondering if some columns there might be causing this.
Actually, looking at your post again I think i understand it better.
The column names from topSNPs is not inheriting what we specify through echodata::construct_colmap
This is actually not the intended behaviour of colmap
, for the reason that topSNPs
(often a supplementary table somewhere in the publication) and fullSS_path
(the full dataset) very frequently have different column naming schemes. So I think it's best to keep munging these as separate steps.
Thus, I recommend using the dedicated function to munge your topSNPs
before passing it into finemap_loci
:
topSNPs <- echodata::import_topSNPs(...)
1. Bug description
The column names from topSNPs is not inheriting what we specify through echodata::construct_colmap
When I pass echodata::construct_colmap, I would expect the column names specify in the list are used to figure out column names in topSNPs.
NOTE When I change the BP name in topSNPs BP -> POS, then finemap_loci() runs. In this case the input GWAS has the bp col name set as BP, and the topSNPs BP col name is set as POS
2. Reproducible example
Code
Console output
Data
3. Session info
(Add output of the R function
utils::sessionInfo()
below. This helps us assess version/OS conflicts which could be causing bugs.)