-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
132 additions
and
48 deletions.
There are no files selected for viewing
Binary file removed
BIN
-8.54 MB
analyses/C_AnnotateMergedTable/stringdb_protein_links.2023-10-11.txt.gz
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Curation of high evidence genes {#manual-curation} | ||
|
||
## Table of high evidence genes | ||
|
||
This table shows the annotated high evidence genes. | ||
|
||
```{r, echo=FALSE, warning=FALSE, out.width = "100%"} | ||
high_evidence_annotated_table_reformat <- high_evidence_annotated_table %>% | ||
mutate(gene = paste0('<a href="https://www.genenames.org/data/gene-symbol-report/#!/hgnc_id/HGNC:', | ||
hgnc_id, | ||
'" target="_blank" ><i>', | ||
approved_symbol, | ||
'</i></a>'), | ||
, .before = approved_symbol) %>% | ||
select(-hgnc_id, -approved_symbol) | ||
datatable(high_evidence_annotated_table_reformat, | ||
filter = 'top', # this argument positions the filtering input at the top of the table | ||
escape = FALSE, # this argument renders the links as HTML | ||
extensions = 'Buttons', # this argument adds an extension for download buttons | ||
options = list( | ||
dom = 'Blfrtip', | ||
scrollX = '400px', | ||
scroller = TRUE, | ||
buttons = c('copy', | ||
'csv', | ||
'excel', | ||
'pdf'), # here we add the download buttons for different formats | ||
lengthMenu = list(c(10, 30, 50, -1), | ||
c('10', '30', '50', 'All')) # here we change the selection options | ||
) | ||
) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Additional analyses {#additional-analyses} | ||
|
||
## Diagnostic panels content overlap | ||
|
||
> Below you can see a bar plot of the diagnostic panels content overlap. | ||
We used ten common diagnostic panels that can be ordered for kidney disease analysis and extracted the screened genes from them. | ||
Here we show the overlap of the genes in the different panels. | ||
|
||
```{r, echo=FALSE, warning=FALSE, out.width = "100%"} | ||
# Summarize the data | ||
count_data <- DiagnosticPanels_genes %>% | ||
group_by(source_count) %>% | ||
summarise(n = n()) | ||
# Calculate the total number of genes | ||
total_genes <- sum(count_data$n) | ||
# Calculate the percentage of genes | ||
count_data <- count_data %>% | ||
mutate(percentage = (n / total_genes) * 100) | ||
# Create a new column for fill color based on source_count values | ||
count_data <- count_data %>% | ||
mutate(fill_color = case_when( | ||
source_count == 1 ~ "Red", | ||
source_count == 10 ~ "Green", | ||
TRUE ~ "Gray" | ||
)) | ||
# Create the plot | ||
diagnostic_panels_overlap_plot <- ggplot(count_data, aes(x = source_count, y = n, fill = fill_color)) + | ||
geom_col(show.legend = FALSE) + | ||
geom_text(aes(label = paste0(round(percentage, 1), "%")), vjust = -0.5) + | ||
scale_x_continuous(breaks = seq(min(count_data$source_count), max(count_data$source_count), by = 1)) + | ||
scale_fill_identity() + | ||
labs(x = "Count of panels", y = "Number of Genes", | ||
title = paste0("Number of genes in 10 clinical diagnostic panels for kidney disease (n = ", total_genes, ")")) + | ||
theme_minimal() | ||
# convert to interactive using ggplotly | ||
ggplotly(diagnostic_panels_overlap_plot) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters