R/ctwas_anno_finemap_res.R
anno_finemap_res.Rd
Map finemapping result of molecular traits to genes.
anno_finemap_res(
finemap_res,
snp_map,
mapping_table,
map_by = "molecular_id",
add_gene_annot = TRUE,
add_position = TRUE,
use_gene_pos = c("mid", "start", "end"),
drop_unmapped = TRUE
)
a data frame of cTWAS finemapping results.
a list of data frames with SNP-to-region map for the reference.
a data frame of mapping between molecular traits and genes, with required columns: "molecular_id", "gene_name".
column name to be mapped by (default: "molecular_id").
If TRUE, add annotations
If TRUE, add positions
Use mid (midpoint), start, or end positions as gene positions.
If TRUE, remove unmapped genes.
a data frame of annotated finemapping result.