Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
astrocyte_example_chipseq
Manage
Activity
Members
Labels
Plan
Issues
1
Issue boards
Milestones
Iterations
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Astrocyte
Workflows
BioHPC
astrocyte_example_chipseq
Commits
eafd41dd
Commit
eafd41dd
authored
3 years ago
by
Erand Smakaj
Browse files
Options
Downloads
Patches
Plain Diff
addes sample chipseq charts for vizapp
parent
17038dcb
1 merge request
!4
addes sample chipseq charts for vizapp
Pipeline
#10734
failed with stages
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
astrocyte_pkg.yml
+2
-1
2 additions, 1 deletion
astrocyte_pkg.yml
vizapp/server.R
+27
-2
27 additions, 2 deletions
vizapp/server.R
vizapp/ui.R
+3
-18
3 additions, 18 deletions
vizapp/ui.R
with
32 additions
and
21 deletions
astrocyte_pkg.yml
+
2
−
1
View file @
eafd41dd
...
...
@@ -142,7 +142,8 @@ vizapp_cran_packages:
# List of any Bioconductor packages, not provided by the modules, that must be made
# available to the vizapp
vizapp_bioc_packages
:
-
-
ChIPseeker
-
org.Hs.eg.db
# List of any packages to install from GitHub using devtools, that must be
# made availavle to the vizapp
...
...
This diff is collapsed.
Click to expand it.
vizapp/server.R
+
27
−
2
View file @
eafd41dd
...
...
@@ -3,18 +3,43 @@
library
(
shiny
)
library
(
shinyFiles
)
library
(
ChIPseeker
)
library
(
TxDb.Hsapiens.UCSC.hg19.knownGene
)
# Results are available in the directory specified by the outputDir environment
# variable, red by Sys.getenv
rootdir
<-
Sys.getenv
(
'outputDir'
)
shinyServer
(
function
(
input
,
output
,
session
)
{
# The backend for a simple file chooser, restricted to the
# rootdir we obtained above.
# See https://github.com/thomasp85/shinyFiles
shinyFileChoose
(
input
,
'files'
,
roots
=
c
(
'workflow'
=
rootdir
),
filetypes
=
c
(
''
,
'bed'
,
'xls'
,
'wig'
),
session
=
session
)
observe
({
print
(
getwd
());
files
<-
list.files
(
path
=
rootdir
,
pattern
=
".bed"
)
cat
(
"\nBed files found:\n\n"
)
filenames
<-
as.list
(
paste0
(
rootdir
,
files
));
names
(
filenames
)
<-
files
;
print
(
filenames
)
txdb
<-
TxDb.Hsapiens.UCSC.hg19.knownGene
peakAnnoList
<-
lapply
(
filenames
,
annotatePeak
,
TxDb
=
txdb
,
tssRegion
=
c
(
-3000
,
3000
),
verbose
=
FALSE
)
output
$
plot1
<-
renderPlot
({
plotAnnoBar
(
peakAnnoList
)
})
output
$
plot2
<-
renderPlot
({
plotDistToTSS
(
peakAnnoList
)
})
})
})
This diff is collapsed.
Click to expand it.
vizapp/ui.R
+
3
−
18
View file @
eafd41dd
...
...
@@ -7,24 +7,9 @@ shinyUI(fluidPage(
verticalLayout
(
# Application title
titlePanel
(
"Astrocyte Example"
),
titlePanel
(
"Astrocyte
ChiPseq
Example"
),
wellPanel
(
helpText
(
"This is a minimal example, demonstrating how
a Shiny visualization application can access the output of a workflow.
Here we provide a file browser using the shinyFiles package. Real
Astrocyte vizapps would provide custom methods to access and visualize
output."
),
helpText
(
"The workflow output is in the directory set in the
outputDir environment variable. this can be retrieved in R with the
command Sys.getenv('outputDir')"
),
# A simple file browser within the workflow output directory
# See https://github.com/thomasp85/shinyFiles
shinyFilesButton
(
'files'
,
label
=
'Browse workflow output'
,
title
=
'Please select a file'
,
multiple
=
FALSE
)
)
plotOutput
(
"plot1"
),
plotOutput
(
"plot2"
)
)
))
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
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