Skip to content
GitLab
Menu
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
f3e618b2
Commit
f3e618b2
authored
Feb 22, 2021
by
Amine GHOZLANE
Browse files
Remove missing levels
parent
b2b05954
Pipeline
#48498
failed with stages
in 45 minutes and 3 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
server.R
View file @
f3e618b2
...
...
@@ -312,6 +312,8 @@ shinyServer(function(input, output,session) {
if
(
!
is.null
(
tmpEpi2me
)
&&
is.null
(
data
))
{
tmpEpi2me
=
tmpEpi2me
[
which
(
tmpEpi2me
$
accuracy
>=
as.numeric
(
input
$
Epi2me_th
)
&
!
is.na
(
tmpEpi2me
$
barcode
)
),]
# remove missing levels
tmpEpi2me
=
droplevels
(
tmpEpi2me
)
tmp
=
plyr
::
count
(
tmpEpi2me
,
c
(
"barcode"
,
"genus"
,
"species"
))
tmp
$
ids
=
paste
(
tmp
$
genus
,
tmp
$
species
,
sep
=
"|"
)
tmp
$
index
=
paste0
(
"Seq_"
,
match
(
tmp
$
ids
,
unique
(
tmp
$
ids
)))
...
...
Write
Preview
Supports
Markdown
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