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
migale
affiliationExplorer
Commits
de08f455
Commit
de08f455
authored
Jan 24, 2020
by
mahendra-mariadassou
Browse files
find_level is explicit when the OTU is not ambiguous.
parent
7e6ec620
Changes
1
Hide whitespace changes
Inline
Side-by-side
R/utils.R
View file @
de08f455
...
...
@@ -59,6 +59,8 @@ sanitize_physeq_and_affi <- function(physeq, affi) {
)
}
## Other utilities ------------------------------------------
## Order OTU by priority level
sort_ambiguous_otu
<-
function
(
physeq
,
affi
)
{
affi
%>%
dplyr
::
arrange
(
desc
(
abundance
))
%>%
dplyr
::
pull
(
OTU
)
...
...
@@ -79,4 +81,7 @@ find_level <- function(data) {
rank_content
<-
data
[[
rank
]]
if
(
not_consistent
(
rank_content
))
return
(
rank
)
}
warning
(
"The provided taxa is not ambiguous"
)
NULL
}
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