Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
pertz-lab
shiny-timecourse-inspector
Commits
5d11aefb
Commit
5d11aefb
authored
Sep 24, 2019
by
dmattek
Browse files
Changed output in debug mode
parent
61f2fcf0
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/selOutliers.R
View file @
5d11aefb
...
...
@@ -199,7 +199,7 @@ modSelOutliers = function(input, output, session, in.data) {
# Identify outliers and remove them from dt
dtReturn
=
reactive
({
cat
(
file
=
stdout
(),
'modSelOutliers:
dtReturn\n'
)
cat
(
file
=
stdout
(),
'modSelOutliers:dtReturn\n'
)
loc.out
=
in.data
()
...
...
@@ -228,7 +228,7 @@ modSelOutliers = function(input, output, session, in.data) {
)
if
(
DEB
)
{
cat
(
file
=
stdout
(),
'
s
elOutliers
.
dtReturn: Outlier points:\n'
)
cat
(
file
=
stdout
(),
'
\nmodS
elOutliers
:
dtReturn: Outlier points:\n'
)
print
(
loc.outpts
)
}
...
...
@@ -251,7 +251,7 @@ modSelOutliers = function(input, output, session, in.data) {
loc.idgaps
=
loc.out
[,
max
(
get
(
COLIDXDIFF
)),
by
=
c
(
COLID
)][
V1
>=
input
$
slOutliersGapLen
,
get
(
COLID
)]
if
(
DEB
)
{
cat
(
file
=
stdout
(),
'\n
s
elOutliers
.
dtReturn: Track IDs with max gap >= threshold:\n'
)
cat
(
file
=
stdout
(),
'\n
modS
elOutliers
:
dtReturn: Track IDs with max gap >= threshold:\n'
)
if
(
length
(
loc.idgaps
)
>
0
)
print
(
loc.idgaps
)
else
cat
(
"none\n"
)
...
...
@@ -272,7 +272,7 @@ modSelOutliers = function(input, output, session, in.data) {
# x-check: print all rows with NA's
if
(
DEB
)
{
cat
(
file
=
stdout
(),
'\n
s
elOutliers
.
dtReturn: Rows with NAs to interpolate:\n'
)
cat
(
file
=
stdout
(),
'\n
modS
elOutliers
:
dtReturn: Rows with NAs to interpolate:\n'
)
print
(
loc.out
[
rowSums
(
is.na
(
loc.out
))
>
0
,
])
}
...
...
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