Closed jamesrpriest closed 2 years ago
Additionally-- when I use the 'bb.alg = FALSE' flag. Results are populated
hyprcoloc(betas, ses, trait.names=chd.traits, snp.id=as.factor(snps), binary.outcomes = binary.traits, bb.alg = FALSE)
Call: hyprcoloc
Results: traits posterior_prob regional_prob 1 complex, conotruncal, lvoto, ASD 0.0045 0.0133 candidate_snp posterior_explained_by_snp 1 chr17:46977741:A:G 0.2206
Hi James,
Apologies for the delayed response.
The outcome you see above is to be expected. The algorithm is attempting to find clusters of traits with an association in the region that colocalize. As only one of the traits is associated, it will repeatedly drop a trait in each step in each iteration, and as none of these iterations passes the regional_prob threshold (0.5) the posterior_prob is not computed. When running the analysis without clustering of traits the full analysis is run, including computing the posterior_prob, regardless of the value of regional_prob.
Hope that all makes sense.
Best wishes,
James
Thank you
Hello; Confused why hyprcoloc is running on my dataset, but there is no output for any column except regional_probability and dropped_trait? The betas & ses are derived from four separate meta-analyses of different congenital heart disease phenotypes-- this locus is GWAS significant for one of the traits. I cannot find any issues with the input data relative to the example test data included with the package. Have included samples below...
Call: hyprcoloc
Results: iteration traits posterior_prob regional_prob candidate_snp 1 1 None NA 0.1993 NA 2 2 None NA 0.0033 NA 3 3 None NA 0.0024 NA posterior_explained_by_snp dropped_trait 1 NA ASD 2 NA lvoto 3 NA complex