All functions |
|
---|---|
Autocorrelation plot for model selection. Model inclusion of each predictor is represented across all iterations as a black and white heatmap. |
|
Infer credible sets of predictors |
|
Wrapper for flashfm Multi-Trait Fine-Mapping with JAM (when trait correlation is zero) - this is the dynamic number of max causal variant version |
|
Wrapper to run single-trait fine-mapping with FINEMAP on each trait, followed by flashfm and then constuct SNP groups for each approach and summarises results |
|
Wrapper to run single-trait fine-mapping with JAMexpandedCor.multi on each trait, followed by flashfm and then constuct SNP groups for each approach and summarises results |
|
Wrapper for flashfm Multi-Trait Fine-Mapping with JAM - this is the dynamic number of max causal variant version |
|
Wrapper to run single-trait fine-mapping with JAMexpandedCor.multi on each trait, followed by flashfm (using fast approximation version) and then constuct SNP groups for each approach and summarises results |
|
List of FINEMAP config file contents for two simulated traits |
|
Derives the beta-binomial mean and standard deviation |
|
Derives the beta-binomial parameters for target mean and standard deviation |
|
JAM (Joint Analysis of Marginal statistics) |
|
JAMPred |
|
List of which LD blocks are to be analysed on which CPU core |
|
Splits a list of SNPs into positive definite blocks. |
|
Logistic to linear effect conversion for JAM |
|
JAM (Joint Analysis of Marginal statistics) multivariate point estimator. |
|
internal function for multibeta, modified from JAM_PointEstimates_Package_Simplified of R2BGLiMS package |
|
internal function for multibeta, modified from JAM_PointEstimates_Package_Simplified of R2BGLiMS package (Paul Newcombe) |
|
JAM rank check. |
|
Wrapper for JAMdynamic single-trait fine-mapping that also outputs SNP groups; PP and credible sets include SNP group information |
|
Expanded version of JAM (a single-trait fine-mapping approach) that first runs on thinned SNPs and then expands models on tag SNPs This version starts at a low upper bound for max causal variants and decides on max upper bound based on data |
|
Expanded version of JAM (a single-trait fine-mapping approach) that first runs on thinned SNPs and then expands models on tag SNPs; this can run independently on multiple traits |
|
Expanded version of JAM (a single-trait fine-mapping approach) that first runs on thinned SNPs and then expands models on tag SNPs; this can run independently on multiple traits This version is more stable than JAMexpandedCor.multi, but slower, so is run only if JAMexpandedCor.multi fails |
|
Manhattan Plot |
|
Infer credible sets of predictors |
|
Approximate effective sample size from GWAS of related samples |
|
Generate conjugate posterior sample of coefficients for a particular linear model. |
|
Summarise PP and MPP results from single-trait fine-mapping and flashfm, by SNP and by SNP group |
|
A pretty summary results table for reports. NOTE: This function outputs a table formatted with character strings. A numeric representation of the results are stored in the slot 'posterior.summary.table'. |
|
Call BGLiMS from R |
|
|
The R2BGLiMS_Results class |
'show' method for R2BGLiMS-R2BGLiMS_Results-class objects |
|
Sample size for the subset of the INTERVAL data that has no missing trait measurements Original INTERVAL GWAS data are available in Astle et al. (2016) and Akbari et al. (2023) |
|
SNP correlation matrix for the subset of the INTERVAL data that has no missing trait measurements Original INTERVAL GWAS data are available in Astle et al. (2016) and Akbari et al. (2023) |
|
GWAS data for three latent traits from a subset of the INTERVAL data that has no missing trait measurements This is a list of three latent trait GWAS data.frames, where each data.frame has columns rsID, beta, EAF, P_value These latent traits (ML4, ML12, ML14) are all related to red blood cell traits and our analyses suggest that rs1175550 is the causal variant for all three traits, which is in agreement with UKBB fine-mapping (Vuckovic et al. 2020) previous studies (Cvejic et al. 2013) Original INTERVAL GWAS data are available in Astle et al. (2016) and Akbari et al. (2023) |
|
Strongest Pairwise Correlation |
|
estimates cross-product of each SNP with one trait |
|
Table of top models |
|
Parameter posterior trace plots for a R2BGLiMS results object |
|
variance of model residuals for trait T1 at all models that have joint effect estimates |
|
variance of model residuals for trait T1 at model index imod |
|
Internal function, Vx.hat |
|
Accessors for groups objects |
|
internal function for calcAdjPP for that gives list of covariance matrix of residuals for all trait pairs |
|
Construct a credible set for each trait and under each of single and multi-trait fine-mapping |
|
Construct a credible set for each trait and under each of single and multi-trait fine-mapping, and provide SNP PP details |
|
Best models from a snpmpd object by cpp or maximum number of models - modification of best.models from GUESSFM by Chris Wallace |
|
Best SNPs |
|
calculate max or min of subset of a matrix |
|
Calculate approximate Bayes' factor (ABF) |
|
Calculates trait-adjusted posterior probabilities for all traits at sharing parameter kappa |
|
covariance between residuals of a pair of models for a trait pair |
|
internal function for calcAdjPP for the 2-trait case |
|
internal function for calcAdjPP that gives constant term for delta |
|
internal function for calcAdjPP for a pair of traits |
|
Convert from old definitions of groups, tags classes to new |
|
Thin genotype correlation matrix for JAM input |
|
Correlation Matrix to Covariance Matrix Conversion |
|
Construct a credible set for a trait |
|
Enumertated approximate posterior probabilities |
|
Calculates a Bayes Facotor, give a prior and posterior probabilities. |
|
Calculates a Beta-Binomial prior probability for a SPECIFIC model. From Bottolo et al. This is not the prior on a particular dimension (that would required the binomial co-efficient). |
|
Replaces the outcome variable with residuals from a linear regression on the confounders. I.e. removes effect of confounders for the conjugate models. |
|
Calculates prior probababilities for x, and >=x causal variables, when a truncated Poisson prior is used for model space |
|
Calculates prior probabability of causality for a particular variable, when a Poisson prior is used for model space |
|
Read formatted data file |
|
This function is used by JAMPred_Step2AdjustmentAndPredictions |
|
Write Java MCMC format data file |
|
internal function for expanding models by tag SNPs in JAMexpanded.multi |
|
Wrapper to run FINEMAP (Benner et al. 2016) in R |
|
Marginal PP for models of a set of traits, sharing information between the traits |
|
Key input for flashfm - constructs snpmod object list and joint effect estimates list for all trait if have external single trait fine-mapping results |
|
Marginal PP for models of a set of traits, sharing information between the traits, when trait correlation is zero |
|
Key input for flashfm - constructs snpmod object list and joint effect estimates list for all trait if have external single trait fine-mapping results, when trait correlation is zero |
|
Find SNP group ids for a set of SNPs |
|
Group SNPs; adapted from group.multi by Chris Wallace |
|
Group SNPs; adapted from group.multi by Chris Wallace |
|
Group focused class for holding information about sets of SNPs defined by their mutual LD |
|
|
|
logsum |
|
Sample size information needed for flashfm |
|
Sample size information needed for flashfm, when samples are related and have effective sample sizes for each trait |
|
Make SNP groups using fine-mapping information from all of the traits |
|
Make two sets of SNP groups using fine-mapping information from all of the traits using two sets of results and maps the names between them |
|
Make two sets of SNP groups using fine-mapping information from all of the traits using two sets of results and maps the names between them |
|
Make SNP groups using fine-mapping information from all of the traits |
|
internal function makemod |
|
internal function marg.snps |
|
internal function marg.snps.vec |
|
Marginal PP for models sharing information between traits |
|
Marginal PP for models sharing information between traits, when trait correlation is zero |
|
internal processing function for JAMexpanded.multi |
|
Wrapper for JAMdynamic single-trait fine-mapping applied to a set of traits, and output SNP groups |
|
Return credible sets from single-trait fine-mapping of several traits |
|
Using summary statistics, calculates joint effect estimates |
|
overlap |
|
Class to hold results of pp.nsnp |
|
|
Show |
Check whether a snp is in a snppicker, groups or tags object |
|
Class to hold data relating to multiple models fitted to SNP data |
|
Class to hold results of snp.picker algorithm |
|
Summaries |
|
Summary statistics needed for flashfm input |
|
internal function for expanding models by tag SNPs in JAMexpandedCor.multi |
|
Tags focused class for holding information about sets of SNPs defined by their mutual LD |
|
Create a union of groups, snppicker or tags objects |