Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
M
mice_amr_2021
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Metrics
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
External Wiki
External Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Susheel Busi
mice_amr_2021
Commits
1bb3c5e0
Commit
1bb3c5e0
authored
Apr 20, 2021
by
Laura Denies
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add new file
parent
b1528e5d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
Integron_Prediction/Integron.R
Integron_Prediction/Integron.R
+22
-0
No files found.
Integron_Prediction/Integron.R
0 → 100644
View file @
1bb3c5e0
#!/user/bin/env R
library
(
tidyverse
)
attc
<-
read.delim
(
file
=
snakemake
@
input
[[
"attc"
]])
attc
$
ID
<-
gsub
(
" "
,
""
,
attc
$
ID
)
attc
<-
attc
%>%
filter
(
Vscore
<=
1
)
attc
$
attc_prediction
<-
"attc"
intI
<-
read.table
(
file
=
snakemake
@
input
[[
"intI"
]],
quote
=
"\""
)
%>%
select
(
3
,
13
)
%>%
filter
(
V13
<=
1
)
colnames
(
intI
)
<-
c
(
"ID"
,
"E_value"
)
intI
$
intI_prediction
<-
"intI"
Integrons
<-
merge
(
attc
,
intI
,
by
=
"ID"
,
all
=
TRUE
)
%>%
select
(
1
,
3
,
5
)
Integrons
<-
unique
(
Integrons
)
Integrons
$
attc_prediction
<-
fct_explicit_na
(
Integrons
$
attc_prediction
,
na_level
=
"-"
)
Integrons
$
intI_prediction
<-
fct_explicit_na
(
Integrons
$
intI_prediction
,
na_level
=
"-"
)
Integrons
$
Prediction
<-
ifelse
(
Integrons
$
attc_prediction
==
"attc"
&
Integrons
$
intI_prediction
==
"intI"
,
"complete"
,
ifelse
(
Integrons
$
attc_prediction
==
"attc"
&
Integrons
$
intI_prediction
==
"-"
,
"intI_incomplete"
,
ifelse
(
Integrons
$
attc_prediction
==
"-"
&
Integrons
$
intI_prediction
==
"intI"
,
"attc_incomplete"
,
"incomplete"
)))
write.table
(
Integrons
,
file
=
snakemake
@
output
[[
"Integrons"
]],
sep
=
"\t"
,
row.names
=
FALSE
,
quote
=
FALSE
)
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