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 |
|
Combines gene PIPs by context, type or group. |
|
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 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 |
|
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 gene annotation table from Ensembl database |
|
Get gene info from weights |
|
Get regions for each gene |
|
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 |
|
Merges region data for cross-boundary genes |
|
Merges region data for cross-boundary genes without using LD |
|
Preprocess PredictDB/FUSION weights and harmonize with LD reference |
|
Preprocess GWAS z-scores, harmonize GWAS z-scores with LD reference |
|
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 to be used in fine-mapping step. |
|
Screens regions with strong signals without using LD. |
|
Summarizes estimated parameters |
|
convert z-scores to pvalues |