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
09033ebd
Commit
09033ebd
authored
Jun 11, 2019
by
majpark21
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Working PSD in main tab and hierarchical tab
parent
899e0590
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
41 additions
and
6 deletions
+41
-6
global.R
global.R
+1
-0
modules/auxfunc.R
modules/auxfunc.R
+1
-0
modules/tabClHier.R
modules/tabClHier.R
+21
-2
modules/trajPsdPlot.R
modules/trajPsdPlot.R
+7
-4
server.R
server.R
+5
-0
ui.R
ui.R
+6
-0
No files found.
global.R
View file @
09033ebd
...
...
@@ -6,6 +6,7 @@ source('modules/dispStats.R')
source
(
'modules/dispTrackStats.R'
)
source
(
'modules/trajPlot.R'
)
source
(
'modules/trajRibbonPlot.R'
)
source
(
'modules/trajPsdPlot.R'
)
source
(
'modules/boxPlot.R'
)
source
(
'modules/tabAUC.R'
)
source
(
'modules/clDistPlot.R'
)
...
...
modules/auxfunc.R
View file @
09033ebd
...
...
@@ -53,6 +53,7 @@ FCSVOUTLIERS = 'outliers.csv'
FCSVTCCLEAN
=
'tCoursesSelected_clean.csv'
FPDFTCMEAN
=
"tCoursesMeans.pdf"
FPDFTCSINGLE
=
"tCourses.pdf"
FPDFTCPSD
=
'tCoursesPsd.pdf'
FPDFBOXAUC
=
'boxplotAUC.pdf'
FPDFBOXTP
=
'boxplotTP.pdf'
FPDFSCATTER
=
'scatter.pdf'
...
...
modules/tabClHier.R
View file @
09033ebd
...
...
@@ -172,6 +172,9 @@ clustHierUI <- function(id, label = "Hierarchical CLustering") {
tabPanel
(
'Time-courses'
,
modTrajPlotUI
(
ns
(
'modPlotHierTraj'
))),
tabPanel
(
'PSD'
,
modPSDPlotUI
(
ns
(
'modPlotHierPsd'
))),
tabPanel
(
'Cluster dist.'
,
modClDistPlotUI
(
ns
(
'hierClDistPlot'
),
'xxx'
))
...
...
@@ -528,13 +531,22 @@ clustHier <- function(input, output, session, in.data4clust, in.data4trajPlot, i
'.pdf'
)
})
createFnamePsdPlot
=
reactive
({
paste0
(
'clust_hierch_tCoursesPsd_'
,
s.cl.diss
[
as.numeric
(
input
$
selectPlotHierDiss
)],
'_'
,
s.cl.linkage
[
as.numeric
(
input
$
selectPlotHierLinkage
)],
'.pdf'
)
})
createFnameDistPlot
=
reactive
({
paste0
(
'clust_hierch_clDist_'
,
s.cl.diss
[
as.numeric
(
input
$
selectPlotHierDiss
)],
'_'
,
s.cl.linkage
[
as.numeric
(
input
$
selectPlotHierLinkage
)],
'.pdf'
)
})
s.cl.linkage
[
as.numeric
(
input
$
selectPlotHierLinkage
)],
'.pdf'
)
})
# Hierarchical - Heat Map - download pdf
...
...
@@ -556,6 +568,13 @@ clustHier <- function(input, output, session, in.data4clust, in.data4trajPlot, i
in.facet.color
=
getClColHier
,
in.fname
=
createFnameRibbonPlot
)
# plot cluster PSD
callModule
(
modPSDPlot
,
'modPlotHierPsd'
,
in.data
=
data4trajPlotCl
,
in.facet
=
'cl'
,
in.facet.color
=
getClColHier
,
in.fname
=
createFnamePsdPlot
)
# plot distribution barplot
callModule
(
modClDistPlot
,
'hierClDistPlot'
,
in.data
=
data4clDistPlot
,
...
...
modules/trajPsdPlot.R
View file @
09033ebd
require
(
DT
)
# UI ----
modPSDPlotUI
=
function
(
id
,
label
=
"Plot PSD of average trajectory."
)
{
ns
<-
NS
(
id
)
...
...
@@ -44,12 +45,14 @@ modPSDPlotUI = function(id, label = "Plot PSD of average trajectory.") {
)
}
# Server ----
modPSDPlot
=
function
(
input
,
output
,
session
,
in.data
,
in.data
,
in.fname
,
in.facet
=
'group'
,
in.facet.color
=
NULL
,
in.fname
)
{
in.facet.color
=
NULL
)
{
ns
<-
session
$
ns
...
...
@@ -105,7 +108,7 @@ modPSDPlot = function(input, output, session,
in.fname
=
in.fname
,
plotTraj
,
TRUE
)
plot
PSD
<-
function
()
{
plot
Traj
<-
function
()
{
cat
(
file
=
stderr
(),
'plotPSD: in\n'
)
locBut
=
input
$
butPlotTraj
...
...
server.R
View file @
09033ebd
...
...
@@ -823,6 +823,11 @@ shinyServer(function(input, output, session) {
in.data.stim
=
data4stimPlot
,
in.fname
=
function
()
{
return
(
FPDFTCSINGLE
)})
# Trajectory plotting - PSD
callModule
(
modPSDPlot
,
'modPSDPlot'
,
in.data
=
data4trajPlotNoOut
,
in.fname
=
function
()
{
return
(
FPDFTCPSD
)})
# Tabs ----
###### AUC calculation and plotting
...
...
ui.R
View file @
09033ebd
...
...
@@ -118,6 +118,12 @@ shinyUI(fluidPage(
uiOutput
(
'varSelHighlight'
),
br
(),
modTrajPlotUI
(
'modTrajPlot'
)
),
tabPanel
(
"Power Spectral Density"
,
br
(),
modPSDPlotUI
(
'modPSDPlot'
)
)
)
),
...
...
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