Description Usage Arguments Details Value
Replace unmapped raw reads with the nearest ASV
1 | map_to_best_asv(asvs, raw, maxdist = 10)
|
asvs |
( |
raw |
( |
maxdist |
( |
The value for element i
of the result is determined as
follows:
asvs[i]
is non-NA
: the value from asvs
is
used.
asvs[i]
and raw[i]
are both NA
:
NA_character_
asvs[i]
is NA
, raw[i]
is non-NA
:
raw[i]
is less than maxdist
in edit
distance from at least one of the non-NA
sequences
in asvs
: the value from asvs
which has the
smallest edit distance from raw[i]
is used.
raw[i]
is not less than maxdist
in edit
distance from at least one of the non-NA
sequences
in asvs
: NA_character_
a character
vector the same length as asvs
, which has
the closest ASV for each read.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.