Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
migale
affiliationExplorer
Commits
e7c1cb5a
Commit
e7c1cb5a
authored
Feb 18, 2020
by
Sandra Derozier
Browse files
Help text & Download debug
parent
5c182bbe
Changes
2
Hide whitespace changes
Inline
Side-by-side
R/app_server.R
View file @
e7c1cb5a
...
...
@@ -55,6 +55,10 @@ app_server <- function(input, output, session) {
data
$
affi
<-
extract_affiliation
(
affi
,
input
$
asv
)
%>%
dplyr
::
distinct
()
amb
<-
find_level
(
data
$
affi
)
output
$
txt
<-
renderUI
(
HTML
({
paste
(
"<p><b>"
,
input
$
asv
,
"- "
,
nrow
(
data
$
affi
)
,
"conflicting affiliation, ambiguity at rank "
,
amb
,
"</b></p>"
)}))
output
$
help
<-
renderUI
(
HTML
({
paste
(
"<cite>Select an affiliation by clicking on a row.<br/>"
,
"It is possible to change the affiliation by double clicking on a cell in the table.</cite>"
)}))
output
$
table
<-
DT
::
renderDT
({
data
$
affi
},
selection
=
list
(
mode
=
'single'
,
selected
=
NULL
,
target
=
'row'
),
editable
=
TRUE
)
...
...
@@ -95,9 +99,7 @@ app_server <- function(input, output, session) {
## Skip ASV
observeEvent
(
input
$
skip
,
{
data
$
amb_otus
<-
setdiff
(
data
$
amb_otus
,
input
$
asv
)
updateSelectInput
(
session
,
"asv"
,
label
=
"Select ASV"
,
choices
=
data
$
amb_otus
,
...
...
@@ -112,7 +114,7 @@ app_server <- function(input, output, session) {
},
content
=
function
(
con
)
{
## Update taxonomy of object phyloseq
phyloseq
::
tax_table
(
physeq
)[
rownames
(
affiliations
$
cleaned
),
]
<-
affiliations
$
cleaned
phyloseq
::
tax_table
(
physeq
)[
rownames
(
data
$
cleaned
),
]
<-
data
$
cleaned
## revert short OTU names back to original names
dict
<-
setNames
(
object
=
otu_dictionary
$
sequence
,
nm
=
otu_dictionary
$
OTU
)
...
...
R/app_ui.R
View file @
e7c1cb5a
...
...
@@ -35,6 +35,8 @@ app_ui <- function() {
solidHeader
=
T
,
htmlOutput
(
"tmptxt"
),
htmlOutput
(
"txt"
),
#HTML("<br/>"),
htmlOutput
(
"help"
),
HTML
(
"<br/>"
),
DT
::
DTOutput
(
"table"
),
#HTML("<br/>"),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment