R/ctwas_summarize_finemap_res.R
anno_finemap_res.Rd
Annotates cTWAS finemapping result with gene annotations
anno_finemap_res(
finemap_res,
snp_map,
gene_annot = NULL,
use_gene_pos = c("mid", "start", "end"),
drop_unannotated_genes = TRUE,
filter_protein_coding_genes = FALSE,
filter_cs = FALSE
)
a data frame of cTWAS finemapping result
a list of data frames with SNP-to-region map for the reference.
a data frame of gene annotations, with columns: "chrom", "start", "end", "gene_id", "gene_name", "gene_type.
use mid (midpoint), start or end positions to represent gene positions.
If TRUE, remove unannotated genes.
If TRUE, keep protein coding genes only.
If TRUE, limits results in credible sets.
a data frame of cTWAS finemapping result including gene names, types and positions