arse
This commit is contained in:
parent
5536a6df55
commit
ff066b7d6a
2 changed files with 6 additions and 2 deletions
|
@ -73,7 +73,9 @@ metadata_cols = c("n_training_size", "n_test_size", "n_trainingY_ratio", "n_test
|
||||||
|
|
||||||
# hardcoded list of drugs
|
# hardcoded list of drugs
|
||||||
drug = c("ethambutol", "isoniazid", "pyrazinamide", "rifampicin", "streptomycin")
|
drug = c("ethambutol", "isoniazid", "pyrazinamide", "rifampicin", "streptomycin")
|
||||||
|
|
||||||
drug_choicenames = c("EmbB-ethambutol", "KatG-isoniazid", "PncA-pyrazinamide", "RpoB-rifampicin", "GidB-streptomycin")
|
drug_choicenames = c("EmbB-ethambutol", "KatG-isoniazid", "PncA-pyrazinamide", "RpoB-rifampicin", "GidB-streptomycin")
|
||||||
|
|
||||||
gene = c("embb", "katg", "pnca", "rpob", "gid")
|
gene = c("embb", "katg", "pnca", "rpob", "gid")
|
||||||
combo = data.frame(drug, gene)
|
combo = data.frame(drug, gene)
|
||||||
|
|
||||||
|
@ -248,11 +250,13 @@ if (interactive()){
|
||||||
),
|
),
|
||||||
radioButtons("drug_dropdown",
|
radioButtons("drug_dropdown",
|
||||||
label="Drug",
|
label="Drug",
|
||||||
|
choiceNames = drug_choicenames,
|
||||||
choices = drug,
|
choices = drug,
|
||||||
selected="pyrazinamide"
|
selected="pyrazinamide"
|
||||||
),
|
),
|
||||||
radioButtons("split_dropdown",
|
radioButtons("split_dropdown",
|
||||||
label="Split",
|
label="Split",
|
||||||
|
choiceNames = split_choicenames,
|
||||||
choices = split_type,
|
choices = split_type,
|
||||||
selected="cd_7030"
|
selected="cd_7030"
|
||||||
),
|
),
|
||||||
|
|
4
ml/ui.R
4
ml/ui.R
|
@ -38,12 +38,12 @@ dashboardPage(skin="purple",
|
||||||
radioButtons("drug_dropdown",
|
radioButtons("drug_dropdown",
|
||||||
label="Target-Drug",
|
label="Target-Drug",
|
||||||
choiceNames = drug_choicenames,
|
choiceNames = drug_choicenames,
|
||||||
choices = drug,
|
choiceValues = drug,
|
||||||
selected="pyrazinamide"
|
selected="pyrazinamide"
|
||||||
),
|
),
|
||||||
radioButtons("split_dropdown",
|
radioButtons("split_dropdown",
|
||||||
label="Train:Test Split",
|
label="Train:Test Split",
|
||||||
choices = split_type,
|
choiceValues = split_type,
|
||||||
choiceNames = split_choicenames,
|
choiceNames = split_choicenames,
|
||||||
selected="cd_7030"
|
selected="cd_7030"
|
||||||
),
|
),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue