accepted.amplicons {AmpliconDuo} | R Documentation |
Returns the indices of those amplicons in an ampliconduo data frame, that passed the applied filter criteria (ampliconduo data frames are filtered using the filter.ampliconduo
or filter.ampliconduo.set
function).
accepted.amplicons(x)
x |
An ampliconduo data frame or a list of ampliconduo data frames. |
Calling this function on an ampliconduo data frame, or a list of the latter, returns the indices of amplicons that passed the applied filter criteria. For each ampliconduo data frame an integer vector is created, and if a list of ampliconduo data frames is supplied with x
, these are pooled in a list.
The returned indices correspond to the data originally used to generate the ampliconduo data frames (parameter A
and B
in the ampliconduo
function call).
If x
is an ampliconduo data frame, an integer vector is returned.
In case x
is a list of ampliconduo data frames, a list of integer
vectors is returned, one for each data frame.
Anja Lange & Daniel Hoffmann
filter.ampliconduo
and filter.ampliconduo.set
## load example data
data(amplicons)
## apply filter criteria
ampliconduos.f <- filter.ampliconduo.set(amplicons, q = 0.05)
## return a list with accepted amplicons
good.reads <- accepted.amplicons(ampliconduos.f)