mirror of
https://github.com/johrpan/ubigen.git
synced 2025-10-26 19:57:24 +01:00
Include percentiles in data
This commit is contained in:
parent
36417f86a7
commit
276730f217
1 changed files with 3 additions and 0 deletions
|
|
@ -16,6 +16,7 @@ server <- function(input, output) {
|
|||
|
||||
data.table::setorder(data, -score)
|
||||
data[, rank := .I]
|
||||
data[, percentile := 1 - rank / max(rank)]
|
||||
|
||||
data
|
||||
})
|
||||
|
|
@ -33,6 +34,7 @@ genes_table <- function(data) {
|
|||
"?db=core;g={gene}\" target=\"_blank\">{hgnc_name}</a>"
|
||||
),
|
||||
"Rank" = rank,
|
||||
"Percentile" = percentile,
|
||||
"Score" = score,
|
||||
"Median" = median_expression,
|
||||
"Mean" = mean_expression,
|
||||
|
|
@ -51,6 +53,7 @@ genes_table <- function(data) {
|
|||
) |>
|
||||
DT::formatPercentage(
|
||||
c(
|
||||
"Percentile",
|
||||
"Score",
|
||||
"Expressed",
|
||||
"Above 50 TPM",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue