R/gene_mapping.R
compute_gene_pip.Rd
Compute gene PIPs based on fine-mapping result and functional annotations.
A GRanges object of fine-mapping result.
A list of GRanges objects of genomic annotations.
Logical. If TRUE, assign intronic SNPs to genes containing the introns.
A scaling parameter used for computing weight based on SNP-gene distance. Weight = exp(-dist/d0). Default = 50000 (50kb).
Weight for exon (and promoter) categories (default = 1).
Weight for chromatin loop categories (default = 1).
columns to keep in the SNP gene weights
A data frame of gene mapping result