Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Amine GHOZLANE
shaman
Commits
060f7c9b
Commit
060f7c9b
authored
Jun 17, 2020
by
Amine GHOZLANE
Browse files
Add export of the tree
parent
eec80d03
Pipeline
#32472
passed with stages
in 102 minutes and 5 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
server.R
View file @
060f7c9b
...
...
@@ -649,7 +649,8 @@ shinyServer(function(input, output,session) {
downloadButton
(
'ExportTaxo'
,
'Export taxonomy file'
)),
tabPanel
(
"Summary"
,
h5
(
strong
(
"Percentage of annotation"
)),
htmlOutput
(
"SummaryView"
),
br
(),
h5
(
strong
(
"Number of features by level:"
)),
plotOutput
(
"SummaryViewBarplot"
,
width
=
1200
,
height
=
500
)),
tabPanel
(
"Phylogeny"
,
PhyloTreeMetaROutput
(
'PhyloTreeMetaR'
))
tabPanel
(
"Phylogeny"
,
PhyloTreeMetaROutput
(
'PhyloTreeMetaR'
),
downloadButton
(
'ExportPhylo'
,
'Export phylogeny file'
))
)
}
...
...
@@ -2318,6 +2319,10 @@ shinyServer(function(input, output,session) {
filename
=
function
()
{
'SHAMAN_taxo.csv'
},
content
=
function
(
file
){
write.csv
(
dataInput
()
$
data
$
taxo
,
file
)}
)
output
$
ExportPhylo
<-
downloadHandler
(
filename
=
function
()
{
'SHAMAN_tree.nhx'
},
content
=
function
(
file
){
write.tree
(
dataInputTree
()
$
data
,
file
=
file
)}
)
## Export in .csv
output
$
ExportCounts
<-
downloadHandler
(
filename
=
function
()
{
'NormCounts.csv'
},
...
...
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