Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Amine GHOZLANE
shaman
Commits
b4721dac
Commit
b4721dac
authored
Sep 05, 2019
by
Amine GHOZLANE
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
Rfunctions/VisuPlot.R
Rfunctions/VisuPlot.R
+6
-3
No files found.
Rfunctions/VisuPlot.R
View file @
b4721dac
...
...
@@ -834,13 +834,16 @@ Plot_Visu_Tree <- function(input,resDiff,CT_Norm_OTU,taxo_table)
if
(
nrow
(
tmp
$
counts
)
>
0
&&
!
is.null
(
tmp
$
counts
))
{
#save(tmp,taxo_table,nodeFind,file="testTree.RData")
merge_dat
=
merge
(
taxo_table
,
round
(
t
(
tmp
$
counts
)),
by
=
"row.names"
)
colnames
(
merge_dat
)[
1
]
=
"OTU"
levels
<-
c
(
"OTU"
,
colnames
(
taxo_table
))
merge_dat
=
merge
(
cbind
(
taxo_table
,
rownames
(
taxo_table
)),
round
(
t
(
tmp
$
counts
)),
by
=
"row.names"
)
colnames
(
merge_dat
)[
1
]
=
"Category"
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
)
#nodeFind = input$TaxoTree
nodeFind
=
input
$
selectTaxoPlot
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
})
}
}
...
...
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