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
Open sidebar
NAVRATIL VINCENT
shinyapps-virhostevol
Commits
70898fe0
Commit
70898fe0
authored
Apr 07, 2022
by
NAVRATIL VINCENT
Browse files
added root clades
parent
d62426ea
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
shinyapps-virhostevol.io/global.R
shinyapps-virhostevol.io/global.R
+7
-1
shinyapps-virhostevol.io/server.R
shinyapps-virhostevol.io/server.R
+4
-3
No files found.
shinyapps-virhostevol.io/global.R
View file @
70898fe0
...
...
@@ -8,12 +8,18 @@ library(gridExtra)
library
(
DT
)
library
(
ggplot2
)
library
(
ggtree
)
library
(
ape
)
library
(
ggmsa
)
library
(
tidyverse
)
library
(
readr
)
colnames_focus
<-
c
(
"File"
,
"Name"
,
"Gene"
,
"Description"
,
"GeneSize"
,
"NbSpecies"
,
"BUSTED"
,
"BUSTED_p-value"
,
"MEME_NbSites"
,
"MEME_PSS"
,
"FUBAR"
,
"FUBAR_NbSites"
,
"FUBAR_PSS"
,
"BppM1M2"
,
"BppM1M2_p-value"
,
"BppM1M2_NbSites"
,
"BppM1M2_PSS"
,
"BppM7M8"
,
"BppM7M8_p-value"
,
"BppM7M8_NbSites"
,
"BppM7M8_PSS"
,
"codemlM1M2"
,
"codemlM1M2_p-value"
,
"codemlM1M2_NbSites"
,
"codemlM1M2_PSS"
,
"codemlM7M8"
,
"codemlM7M8_p-value"
,
"codemlM7M8_NbSites"
,
"codemlM7M8_PSS"
)
colnames_full
<-
c
(
"File"
,
"Name"
,
"Gene"
,
"Description"
,
"GeneSize"
,
"NbSpecies"
,
"omegaM0Bpp"
,
"omegaM0codeml"
,
"BUSTED"
,
"BUSTED_p-value"
,
"MEME_NbSites"
,
"MEME_PSS"
,
"BppM1M2"
,
"BppM1M2_p-value"
,
"BppM1M2_NbSites"
,
"BppM1M2_PSS"
,
"BppM7M8"
,
"BppM7M8_p-value"
,
"BppM7M8_NbSites"
,
"BppM7M8_PSS"
,
"codemlM1M2"
,
"codemlM1M2_p-value"
,
"codemlM1M2_NbSites"
,
"codemlM1M2_PSS"
,
"codemlM7M8"
,
"codemlM7M8_p-value"
,
"codemlM7M8_NbSites"
,
"codemlM7M8_PSS"
)
colnames_full
<-
c
(
"File"
,
"Name"
,
"Gene"
,
"Description"
,
"GeneSize"
,
"NbSpecies"
,
"omegaM0Bpp"
,
"omegaM0codeml"
,
"BUSTED"
,
"BUSTED_p-value"
,
"MEME_NbSites"
,
"MEME_PSS"
,
"BppM1M2"
,
"BppM1M2_p-value"
,
"BppM1M2_NbSites"
,
"BppM1M2_PSS"
,
"BppM7M8"
,
"BppM7M8_p-value"
,
"BppM7M8_NbSites"
,
"BppM7M8_PSS"
,
"codemlM1M2"
,
"codemlM1M2_p-value"
,
"codemlM1M2_NbSites"
,
"codemlM1M2_PSS"
,
"codemlM7M8"
,
"codemlM7M8_p-value"
,
"codemlM7M8_NbSites"
,
"codemlM7M8_PSS"
)
#define root_clades
root_clade_bats
<-
"meglyr|rhiSin|rhiFer|hipArm|hipRub|eidHel|rouAeg|pteAle|pteVam"
#root_clade_primates <- "eulRuf|eulCol|eulFul|eulSan|eulAlb|eulMon|eulMac|eulCor|eulRub|hapOcc|hapGri|lemCat|varVar|lepSep|lepAnk|lepDor|lepRuf|lepJam|micMur|mirZaz|cheMed|proVer|proTat|proDia|proEdw|avaLan|dauMad|nycBen|nycCou|nycPyg|lorTar|arcCal|perPot|galSen|galMoh|otoGar|otoCra|galTho|galVar|cynVol|tupGli|tupMin"
root_clade_primates
<-
"nycBen|nycCou|nycPyg|lorTar|arcCal|perPot|galSen|galMoh|otoGar|otoCra|galTho|galVar|cynVol|tupGli|tupMin"
root_clades
<-
paste
(
root_clade_bats
,
root_clade_primates
,
sep
=
"|"
)
\ No newline at end of file
shinyapps-virhostevol.io/server.R
View file @
70898fe0
...
...
@@ -265,8 +265,9 @@ shinyServer(
phylopic_id
=
"18bfd2fc-f184-4c3a-b511-796aafcc70f6"
}
rooted_tree
<-
root
(
tree
,
tree
$
tip.label
%>%
str_detect
(
root_clades
)
%>%
which
(),
r
=
TRUE
)
p
<-
ggtree
(
tree
,
size
=
1
)
+
geom_tiplab
(
size
=
5
)
p
<-
ggtree
(
rooted_
tree
,
size
=
1
)
+
geom_tiplab
(
size
=
5
)
p_msa_window
<-
dginn_msaplot
(
p
,
paste
(
file_url
,
".fasta"
,
sep
=
""
),
offset
=
1
,
width
=
5
,
window
=
c
(
120
,
200
))
...
...
@@ -347,8 +348,8 @@ shinyServer(
phylopic_id
=
"18bfd2fc-f184-4c3a-b511-796aafcc70f6"
}
p
<-
ggtree
(
tree
,
size
=
1
)
+
geom_tiplab
(
size
=
5
)
rooted_tree
<-
root
(
tree
,
tree
$
tip.label
%>%
str_detect
(
root_clades
)
%>%
which
(),
r
=
TRUE
)
p
<-
ggtree
(
rooted_
tree
,
size
=
1
)
+
geom_tiplab
(
size
=
5
)
p_msa_window
<-
dginn_msaplot
(
p
,
paste
(
file_url
,
".best.fas"
,
sep
=
""
),
offset
=
1
,
width
=
5
,
window
=
c
(
120
,
200
))
...
...
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