contains_motif: Check whether sequences fit motif

View source: R/util-motifs.R

contains_motifR Documentation

Check whether sequences fit motif

Description

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

Usage

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.


KotulskaLab/AmyloGraph documentation built on June 30, 2023, 8:48 p.m.