Compare each sequence against a motif. Motif is patternized before making comparisons.

contains_motif(sequences, motif)

Arguments

sequences

[list()]
Sequences to check, each element being a tibble with name and sequence columns.

motif

[character(1)]
Motif to look for in sequences.

Value

A logical vector of the same length as sequences vector, each element showing whether a motif was found in a sequence.