findnonmissing | R Documentation |
In various taxonomic databases and pipelines, unknown or missing taxonomic labels may be indicated in a variety of ways, such as missing data, "unclassified", "uncultured", etc. This function identifies all of these that I have encountered so far.
findnonmissing(x)
x |
A character vector of taxonomic labels, for example a single
column of the |
The following values will result in output of FALSE
.
NA
An empty string.
The words “unclassified”, “unidentified”, “uncultured”, “unknown”, or “metagenome” anywhere in the string, in any case.
Values equal to “human_gut.”
A logical vector, with TRUE
if the taxonomic label reflects a
taxonomic identity, and FALSE
if it should be considered missing.
Lindsay V. Clark
findnonmissing(c("Streptococcus", "Blautia", "Horse metagenome", NA))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.