Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion R/colocboost_plot.R
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ plot_initial <- function(cb_plot_input, y = "log10p",
plot_data <- cb_plot_input$vcp
ylab <- "VCP"
if (length(cb_plot_input$outcomes) == 1) {
ylab <- "PIP"
ylab <- "VPA"
}
args$ylim <- c(0, 1)
} else if (y == "coef") {
Expand Down
1 change: 1 addition & 0 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ articles:
- Disease_Prioritized_Colocalization
- Interpret_ColocBoost_Output
- Visualization_ColocBoost_Output
- Partial_Overlap_Variants

- title: internal
contents:
Expand Down
16 changes: 16 additions & 0 deletions vignettes/Disease_Prioritized_Colocalization.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ res <- colocboost(X = X, Y = Y, sumstat = sumstat, LD = LD)

# Identified CoS
res$cos_details$cos$cos_index

# Plotting the results
colocboost_plot(res)
```

### Results Interpretation
Expand All @@ -89,10 +92,23 @@ For comprehensive tutorials on result interpretation and advanced visualization
# 3. Run ColocBoost (Disease Prioritized Colocalization)


TO-DO-LIST


```{r disease-basic}
# Run colocboost
res <- colocboost(X = X, Y = Y, sumstat = sumstat, LD = LD, focal_outcome_idx = 5)

# Identified CoS
res$cos_details$cos$cos_index

# Plotting results
colocboost_plot(res)
```



```{r disease-basic-focal}
# Plotting the focal only results
colocboost_plot(res, plot_focal_only = TRUE)
```
3 changes: 3 additions & 0 deletions vignettes/Individual_Level_Colocalization.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ res <- colocboost(X = X, Y = Y)

# Identified CoS
res$cos_details$cos$cos_index

# Plotting the results
colocboost_plot(res)
```


Expand Down
10 changes: 10 additions & 0 deletions vignettes/Input_Data_Format.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,13 @@ refer to [Summary Statistics Colocalization](https://statfungen.github.io/colocb
- One LD matrix with a superset of variants in `sumstat` for all traits is allowed.
- Multiple LD matrices, each corresponding to a different trait, are also allowed for the trait-specific LD structure.
- Multiple LD matrices and unmatched `sumstat` data frames with a mapping dictionary are also allowed.



## 3. Dictionary format for mapping

TO-DO-LIST

## 4. Effect size and standard error of effect size matrices

TO-DO-LIST
2 changes: 2 additions & 0 deletions vignettes/Interpret_ColocBoost_Output.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ The output from `get_strong_colocalization` is the same as output from `colocboo

## 3. Details of ColocBoost output

TO-DO-LIST

The entire colocalization output from `colocboost` is stored in the `colocboost` object, which contains several components:

- `cos_summary`: A summary table for colocalization events.
Expand Down
31 changes: 31 additions & 0 deletions vignettes/Partial_Overlap_Variants.Rmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
title: "Handling partial overlapping variants across traits in ColocBoost"
output: rmarkdown::html_vignette
vignette: >
%\VignetteIndexEntry{Handling partial overlapping variants across traits in ColocBoost}
%\VignetteEngine{knitr::rmarkdown}
%\VignetteEncoding{UTF-8}
---

```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
```

This vignette demonstrates how to handle partial overlapping variants across traits in ColocBoost.


```{r setup}
library(colocboost)
```

![](../man/figures/missing_representation.png)


TO-DO-LIST




3 changes: 3 additions & 0 deletions vignettes/Summary_Statistics_Colocalization.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ res <- colocboost(sumstat = Sumstat_5traits$sumstat, LD = LD)

# Identified CoS
res$cos_details$cos$cos_index

# Plotting the results
colocboost_plot(res)
```


Expand Down
1 change: 1 addition & 0 deletions vignettes/announcements.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ vignette: >

## Initial release in ColocBoost

TO-DO-LIST

We are excited to release ColocBoost (FIXME version), where it is now the default version for new installs.