Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Laura Denies
PathoFact
Commits
1fe55556
Commit
1fe55556
authored
Apr 17, 2020
by
Laura Denies
Browse files
Updated AMR_MGE.R
parent
aacfeddb
Changes
1
Hide whitespace changes
Inline
Side-by-side
rules/AMR/AMR_MGE.R
View file @
1fe55556
...
...
@@ -71,6 +71,10 @@ colnames(VirSorter)<- c("ContigID","VirSorter_prediction")
VirSorter
$
ContigID
<-
as.numeric
(
as.character
(
VirSorter
$
ContigID
))
VirSorter
$
ContigID
<-
sprintf
(
"%010d"
,
VirSorter
$
ContigID
)
## Combine Phage prediction
Phage_prediction
<-
merge
(
VirFinder
,
VirSorter
,
by
=
"ContigID"
,
all
=
TRUE
)
Phage_prediction
$
VirSorter_prediction
<-
fct_explicit_na
(
Phage_prediction
$
VirSorter_prediction
,
na_level
=
"-"
)
# Combine AMR/MGE with Phage prediction
AMR_MGE
<-
merge
(
AMR_Plasmid
,
Phage_prediction
,
by
=
"ContigID"
,
all
=
TRUE
)
AMR_MGE
<-
AMR_MGE
%>%
mutate_if
(
is.factor
,
fct_explicit_na
,
na_level
=
"-"
)
...
...
Valentina Galata
@valentina.galata
mentioned in commit
943101e6
·
Apr 17, 2020
mentioned in commit
943101e6
mentioned in commit 943101e62e640d65f4ac0ea93875a6d5fab0f5b1
Toggle commit list
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