Skip to content
GitLab
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
b4721dac
Commit
b4721dac
authored
Sep 05, 2019
by
Amine GHOZLANE
Browse files
Improved appearance of the tree weight
parent
319523d6
Pipeline
#14351
passed with stages
in 109 minutes and 57 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Rfunctions/VisuPlot.R
View file @
b4721dac
...
@@ -834,13 +834,16 @@ Plot_Visu_Tree <- function(input,resDiff,CT_Norm_OTU,taxo_table)
...
@@ -834,13 +834,16 @@ Plot_Visu_Tree <- function(input,resDiff,CT_Norm_OTU,taxo_table)
if
(
nrow
(
tmp
$
counts
)
>
0
&&
!
is.null
(
tmp
$
counts
))
if
(
nrow
(
tmp
$
counts
)
>
0
&&
!
is.null
(
tmp
$
counts
))
{
{
#save(tmp,taxo_table,nodeFind,file="testTree.RData")
#save(tmp,taxo_table,nodeFind,file="testTree.RData")
merge_dat
=
merge
(
taxo_table
,
round
(
t
(
tmp
$
counts
)),
by
=
"row.names"
)
merge_dat
=
merge
(
cbind
(
taxo_table
,
rownames
(
taxo_table
)),
round
(
t
(
tmp
$
counts
)),
by
=
"row.names"
)
colnames
(
merge_dat
)[
1
]
=
"OTU"
colnames
(
merge_dat
)[
1
]
=
"Category"
levels
<-
c
(
"OTU"
,
colnames
(
taxo_table
))
colnames
(
merge_dat
)[
dim
(
taxo_table
)[
2
]
+2
]
=
"OTU"
merge_dat
[
is.na
(
merge_dat
)]
=
""
levels
<-
c
(
"Category"
,
colnames
(
taxo_table
),
"OTU"
)
conditions
<-
rownames
(
tmp
$
counts
)
conditions
<-
rownames
(
tmp
$
counts
)
#nodeFind = input$TaxoTree
#nodeFind = input$TaxoTree
nodeFind
=
input
$
selectTaxoPlot
nodeFind
=
input
$
selectTaxoPlot
if
(
length
(
input
$
selectTaxoPlot
)
==
0
)
nodeFind
=
NULL
if
(
length
(
input
$
selectTaxoPlot
)
==
0
)
nodeFind
=
NULL
#save(merge_dat,conditions,levels,nodeFind,file="abuntree.RDATA")
res
=
treeWeightD3
(
merge_dat
,
conditions
,
levels
,
nodeFind
=
nodeFind
,
height
=
input
$
heightVisu
+10
,
width
=
if
(
input
$
modifwidthVisu
){
input
$
widthVisu
})
res
=
treeWeightD3
(
merge_dat
,
conditions
,
levels
,
nodeFind
=
nodeFind
,
height
=
input
$
heightVisu
+10
,
width
=
if
(
input
$
modifwidthVisu
){
input
$
widthVisu
})
}
}
}
}
...
...
Write
Preview
Supports
Markdown
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!
Cancel
Please
register
or
sign in
to comment