Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
shiny-timecourse-inspector
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pertz-lab
shiny-timecourse-inspector
Commits
a168f75e
Commit
a168f75e
authored
Apr 26, 2018
by
dmattek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added: checkbox for NA interpolation. Time frequency input shows only when NA interpolation = T.
parent
7b7d8294
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
35 deletions
+41
-35
server.R
server.R
+40
-35
ui.R
ui.R
+1
-0
No files found.
server.R
View file @
a168f75e
...
...
@@ -144,6 +144,7 @@ shinyServer(function(input, output, session) {
output
$
varSelTimeFreq
=
renderUI
({
cat
(
file
=
stderr
(),
'UI varSelTimeFreq\n'
)
if
(
input
$
chBtrajInter
)
{
numericInput
(
'inSelTimeFreq'
,
'Provide time frequency:'
,
...
...
@@ -152,6 +153,7 @@ shinyServer(function(input, output, session) {
width
=
'100%'
,
value
=
1
)
}
})
# This is main field to select plot facet grouping
...
...
@@ -620,6 +622,7 @@ shinyServer(function(input, output, session) {
setkey
(
loc.out
,
group
,
id
,
realtime
)
if
(
input
$
chBtrajInter
)
{
# here we fill missing data with NA's
loc.out
=
loc.out
[
setkey
(
loc.out
[,
.
(
seq
(
min
(
realtime
),
max
(
realtime
),
input
$
inSelTimeFreq
)),
by
=
.
(
group
,
id
)],
group
,
id
,
V1
)]
...
...
@@ -648,6 +651,8 @@ shinyServer(function(input, output, session) {
# Create a UI filed for selecting the column with mid.in data.
# What to do with that column during interpolation (see above)
}
## Trim x-axis (time)
if
(
input
$
chBtimeTrim
)
{
loc.out
=
loc.out
[
realtime
>=
input
$
slTimeTrim
[[
1
]]
&
realtime
<=
input
$
slTimeTrim
[[
2
]]
]
...
...
ui.R
View file @
a168f75e
...
...
@@ -42,6 +42,7 @@ shinyUI(fluidPage(
uiOutput
(
'uiButLoadTrajRem'
),
tags
$
hr
(),
checkboxInput
(
'chBtrajInter'
,
'Interpolate NAs?'
,
value
=
T
),
checkboxInput
(
'chBtrackUni'
,
'Create unique TrackLabel'
,
T
),
helpPopup
(
title
=
'Create unique cell ID'
,
...
...
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