All functions | 
      |
|---|---|
Add SNP and gene positions to cTWAS finemapping result.  | 
      |
Map finemapping result of molecular traits to genes.  | 
      |
Map molecular traits to genes in susie alpha result.  | 
      |
Assembles data for all the regions  | 
      |
Check the numbers of SNPs in snp_map, z_snp and weights  | 
      |
Combines gene PIPs by context, type or group.  | 
      |
Computes enrichment (log-scale), standard error and p-value  | 
      |
Computes z-scores of molecular traits  | 
      |
Computes correlation matrices for a single region  | 
      |
Computes non-SNP PIPs for all regions from finemapping result  | 
      |
Computes LD for weight variants using reference LD  | 
      |
Converts fusion weights to predictDB format  | 
      |
Converts PLINK genotype data to LD matrices and SNP info files, saves LD matrices as .RDS files and SNP info as .Rvar files  | 
      |
Convert rsIDs and varIDs in predictDB weights to the reference variant format.  | 
      |
Convert variant IDs from Open GWAS format or PredictDB weight format  | 
      |
Creates weight files in PredictDB format from QTL data  | 
      |
Map SNPs to regions using region meta table.  | 
      |
Map SNPs to regions using all the variants in the LD reference.  | 
      |
cTWAS analysis using summary statistics  | 
      |
cTWAS analysis using summary statistics with "no LD" version  | 
      |
Diagnose LD mismatch using SuSiE RSS  | 
      |
Estimates cTWAS parameters using EM with cTWAS SER model  | 
      |
Estimate L for all regions by running finemapping with uniform prior  | 
      |
Expands region_data with all SNPs  | 
      |
Filter z_gene by group size  | 
      |
Runs cTWAS fine-mapping for regions  | 
      |
Runs cTWAS fine-mapping for regions without LD (L = 1)  | 
      |
Get cross-boundary genes.  | 
      |
Get gene annotation table from Ensembl database  | 
      |
Get gene info from weights.  | 
      |
Get original molecular IDs  | 
      |
Get genome build of PredictDB weight  | 
      |
Gets problematic genes from problematic SNPs  | 
      |
Gets correlation matrices for a single region.  | 
      |
Load LD matrix  | 
      |
Loads weights in FUSION format  | 
      |
Loads weights in PredictDB format  | 
      |
Loads precomputed correlation matrices for a single region.  | 
      |
Loads weights in PredictDB or FUSION format  | 
      |
Make convergence plots for the estimated parameters  | 
      |
Plots the cTWAS result for a single locus  | 
      |
Map regions for each gene.  | 
      |
Merges region data for cross-boundary genes  | 
      |
Merges region data for cross-boundary genes without using LD  | 
      |
Runs cTWAS post-processing procedure for merging regions  | 
      |
Runs cTWAS post-processing procedure for region merging  | 
      |
Runs cTWAS post-processing procedure for region merging without LD  | 
      |
Preprocess PredictDB/FUSION weights and harmonize with LD reference  | 
      |
Preprocess GWAS z-scores, harmonize GWAS z-scores with LD reference  | 
      |
Read .exprvar file into R  | 
      |
Read GWAS summary statistics  | 
      |
Read a single SNP info file as a data frame  | 
      |
Read multiple single SNP info files as a data frame  | 
      |
Screens regions with strong signals  | 
      |
Gets boundary genes and selects high PIP boundary genes  | 
      |
Get a subset of weights, by group, context or type.  | 
      |
Summarizes estimated parameters  | 
      |
Gets a basic summary of region signals  | 
      |
Trim weights and filter SNPs by LD reference and GWAS SNPs.  | 
      |
Updates cTWAS finemapping result for selected regions  | 
      |
Updates cTWAS input data with merged region data  | 
      |
Updates cTWAS input data without LD with merged region data  | 
      |
Updates cTWAS finemapping result for merged regions  | 
      |
Adds or updates z-scores in region_data based on z_snp and z_gene. this will also update sid and gid based on z_snp and z_gene.  | 
      |
convert z-scores to p-values (two-sided test)  | 
      |