mirror of
https://github.com/johrpan/ubigen.git
synced 2025-10-27 04:07:25 +01:00
Show relative increase in GSEA
This commit is contained in:
parent
22dedfc843
commit
e621761fd6
1 changed files with 7 additions and 1 deletions
|
|
@ -134,12 +134,14 @@ server <- function(input, output, session) {
|
||||||
|
|
||||||
data[, total_ratio := term_size / effective_domain_size]
|
data[, total_ratio := term_size / effective_domain_size]
|
||||||
data[, query_ratio := intersection_size / query_size]
|
data[, query_ratio := intersection_size / query_size]
|
||||||
|
data[, increase := (query_ratio - total_ratio) / total_ratio]
|
||||||
|
|
||||||
data <- data[, .(
|
data <- data[, .(
|
||||||
source,
|
source,
|
||||||
term_name,
|
term_name,
|
||||||
total_ratio,
|
total_ratio,
|
||||||
query_ratio,
|
query_ratio,
|
||||||
|
increase,
|
||||||
p_value
|
p_value
|
||||||
)]
|
)]
|
||||||
|
|
||||||
|
|
@ -151,6 +153,7 @@ server <- function(input, output, session) {
|
||||||
"Term",
|
"Term",
|
||||||
"Total ratio",
|
"Total ratio",
|
||||||
"Query ratio",
|
"Query ratio",
|
||||||
|
"Increase",
|
||||||
"p-value"
|
"p-value"
|
||||||
),
|
),
|
||||||
options = list(
|
options = list(
|
||||||
|
|
@ -158,7 +161,10 @@ server <- function(input, output, session) {
|
||||||
)
|
)
|
||||||
) |>
|
) |>
|
||||||
DT::formatRound("p_value", digits = 4) |>
|
DT::formatRound("p_value", digits = 4) |>
|
||||||
DT::formatPercentage(c("total_ratio", "query_ratio"), digits = 1)
|
DT::formatPercentage(
|
||||||
|
c("total_ratio", "query_ratio", "increase"),
|
||||||
|
digits = 2
|
||||||
|
)
|
||||||
})
|
})
|
||||||
|
|
||||||
output$gsea_plot_ranking <- plotly::renderPlotly(gsea_plot_ranking)
|
output$gsea_plot_ranking <- plotly::renderPlotly(gsea_plot_ranking)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue