Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
shinyscreen
Manage
Activity
Members
Labels
Plan
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Environmental Cheminformatics
shinyscreen
Commits
460cfab3
Commit
460cfab3
authored
2 years ago
by
Todor Kondic
Browse files
Options
Downloads
Patches
Plain Diff
app: shiny-ui-base: Render cindex
parent
ef93fd85
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
R/resources.R
+3
-0
3 additions, 0 deletions
R/resources.R
R/shiny-state.R
+5
-0
5 additions, 0 deletions
R/shiny-state.R
R/shiny-ui-base.R
+17
-2
17 additions, 2 deletions
R/shiny-ui-base.R
inst/rmd/app.Rmd
+20
-4
20 additions, 4 deletions
inst/rmd/app.Rmd
with
45 additions
and
6 deletions
R/resources.R
+
3
−
0
View file @
460cfab3
...
@@ -282,3 +282,6 @@ SYM_NO="\U00274C"
...
@@ -282,3 +282,6 @@ SYM_NO="\U00274C"
CMPD_LIST_PATT
<-
"((*.csv)|(*.csv.gz))$"
CMPD_LIST_PATT
<-
"((*.csv)|(*.csv.gz))$"
SET_LIST_PATT
<-
CMPD_LIST_PATT
SET_LIST_PATT
<-
CMPD_LIST_PATT
DFILES_LIST_PATT
<-
".*\\.mz[Mm][Ll]$"
DFILES_LIST_PATT
<-
".*\\.mz[Mm][Ll]$"
CINDEX_BY
<-
c
(
"set"
,
"adduct"
,
"tag"
,
"ID"
)
CINDEX_COLS
<-
c
(
"mz"
,
"ms1_rt"
,
"Formula"
,
"Name"
)
This diff is collapsed.
Click to expand it.
R/shiny-state.R
+
5
−
0
View file @
460cfab3
...
@@ -335,3 +335,8 @@ pre_setup_val_block <- function(gui) {
...
@@ -335,3 +335,8 @@ pre_setup_val_block <- function(gui) {
T
T
}
}
gen_cindex
<-
function
(
summ
,
cols
=
CINDEX_COLS
,
by.
=
CINDEX_BY
)
{
allc
<-
c
(
by.
,
cols
)
summ
[,
first
(
.SD
),
by
=
by.
][,
..allc
]
}
This diff is collapsed.
Click to expand it.
R/shiny-ui-base.R
+
17
−
2
View file @
460cfab3
...
@@ -704,6 +704,12 @@ mk_shinyscreen_server <- function(projects,init) {
...
@@ -704,6 +704,12 @@ mk_shinyscreen_server <- function(projects,init) {
m
$
input
$
tab
$
setid
m
$
input
$
tab
$
setid
})
})
rf_get_cindex
<-
eventReactive
(
rvs
$
status
$
is_qa_stat
,{
summ
<-
req
(
rvs
$
m
$
out
$
tab
$
summ
)
## simple_style_dt(gen_cindex(summ))
gen_cindex
(
summ
)
})
## OBSERVERS
## OBSERVERS
...
@@ -771,8 +777,8 @@ mk_shinyscreen_server <- function(projects,init) {
...
@@ -771,8 +777,8 @@ mk_shinyscreen_server <- function(projects,init) {
rvs
$
status
$
ms1_fine_stat
=
m
$
conf
$
tolerance
[[
"ms1 fine"
]]
rvs
$
status
$
ms1_fine_stat
=
m
$
conf
$
tolerance
[[
"ms1 fine"
]]
rvs
$
status
$
ms1_eic_stat
=
m
$
conf
$
tolerance
[[
"eic"
]]
rvs
$
status
$
ms1_eic_stat
=
m
$
conf
$
tolerance
[[
"eic"
]]
rvs
$
status
$
rt_stat
=
m
$
conf
$
tolerance
[[
"rt"
]]
rvs
$
status
$
rt_stat
=
m
$
conf
$
tolerance
[[
"rt"
]]
rvs
$
status
$
ms1_int_thresh_stat
=
rvs
$
m
$
conf
$
prescreen
[[
"ms1_int_thresh
_stat
"
]]
rvs
$
status
$
ms1_int_thresh_stat
=
rvs
$
m
$
conf
$
prescreen
[[
"ms1_int_thresh"
]]
rvs
$
status
$
ms2_int_thresh_stat
=
rvs
$
m
$
conf
$
prescreen
[[
"ms2_int_thresh
_stat
"
]]
rvs
$
status
$
ms2_int_thresh_stat
=
rvs
$
m
$
conf
$
prescreen
[[
"ms2_int_thresh"
]]
rvs
$
status
$
s2n_stat
=
rvs
$
m
$
conf
$
prescreen
[[
"s2n"
]]
rvs
$
status
$
s2n_stat
=
rvs
$
m
$
conf
$
prescreen
[[
"s2n"
]]
rvs
$
status
$
ret_time_shift_tol_stat
=
rvs
$
m
$
conf
$
prescreen
[[
"ret_time_shift_tol"
]]
rvs
$
status
$
ret_time_shift_tol_stat
=
rvs
$
m
$
conf
$
prescreen
[[
"ret_time_shift_tol"
]]
if
(
NROW
(
m
$
extr
$
ms1
)
>
0L
)
rvs
$
status
$
is_extracted_stat
<-
"Yes."
if
(
NROW
(
m
$
extr
$
ms1
)
>
0L
)
rvs
$
status
$
is_extracted_stat
<-
"Yes."
...
@@ -1121,6 +1127,15 @@ mk_shinyscreen_server <- function(projects,init) {
...
@@ -1121,6 +1127,15 @@ mk_shinyscreen_server <- function(projects,init) {
req
(
rvs
$
status
$
ret_time_shift_tol_stat
)
req
(
rvs
$
status
$
ret_time_shift_tol_stat
)
})
})
## RENDER: COMPOUND INDEX
output
$
cindex
<-
DT
::
renderDT
({
tab
<-
rf_get_cindex
()
validate
(
need
(
NROW
(
tab
)
>
0L
,
message
=
"Need to prescreen, first."
))
print
(
names
(
tab
))
simple_style_dt
(
tab
)
})
...
...
This diff is collapsed.
Click to expand it.
inst/rmd/app.Rmd
+
20
−
4
View file @
460cfab3
...
@@ -637,21 +637,37 @@ DT::dataTableOutput("setid_table")
...
@@ -637,21 +637,37 @@ DT::dataTableOutput("setid_table")
## Results Explorer
## Results Explorer
<div style="display: flex; flex-flow: row wrap;">
<div style="display: flex; flex-flow: row wrap;">
<div style="width: 25%; padding-right: 1.0em; background-color: var(--lt-gr-bg);">
<div style="width: 25%; padding-right: 1.0em; background-color: var(--lt-gr-bg);">
<div>
<div>
### Compounds
### Compound Index
</div>
<div style="overflow-x: scroll">
```{r, echo=F}
DT::DTOutput("cindex")
```
</div> <!-- cindex-table -->
<div style="display: flex; flex-flow: row wrap; vertical-align: bottom">
```{r, echo=F}
selectInput("cindex_switch_ms2", label="Select MS2 to show", width="30%", choices=NULL)
```
</div> <!-- cindex-controls -->
</div> <!-- Compound Index -->
<div>
<div>
### Arrange
### Arrange
</div>
</div>
<!-- Arrange -->
<div>
<div>
### Filter
### Filter
</div>
</div>
<!-- Filter -->
</div> <!-- Big left panel. -->
</div> <!-- Big left panel. -->
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment