Show distances in results and add filtering

This commit is contained in:
Elias Projahn 2022-05-23 11:24:49 +02:00
parent 507f90e084
commit 17b738378a
3 changed files with 33 additions and 3 deletions

View file

@ -45,11 +45,18 @@ server <- function(options) {
# Rank the results.
ranking <- methods_server("methods", analysis, comparison_gene_ids)
genes_with_distances <- merge(
geposan::genes,
geposan::distances[species == "hsapiens"],
by.x = "id",
by.y = "gene"
)
# Add gene information to the results.
results <- reactive({
merge(
ranking(),
geposan::genes,
genes_with_distances,
by.x = "gene",
by.y = "id",
sort = FALSE