motif_compare: Count the number of motifs in a set of non-random versus...

View source: R/motif_compare.R

motif_compareR Documentation

Count the number of motifs in a set of non-random versus random sequences

Description

Compare the number of motifs in a set of non-random versus random sequences. The resulting values can then be used to test the enrichment of certain motifs in real sequences compared to random sequences.

Usage

motif_compare(
  real_seqs,
  random_seqs,
  motifs,
  max.mismatch = 0,
  min.mismatch = 0,
  ...
)

Arguments

real_seqs

a file path to the fasta file storing the non-random set of sequences.

random_seqs

a file path to the fasta file storing the random set of sequences, e.g. generated with extract_random_seqs_from_genome.

motifs

a character vector storing a set of motifs that shall be counted within respective sequences.

max.mismatch

the maximum number of mismatching letters allowed (see matchPattern for details).

min.mismatch

the minimum number of mismatching letters allowed (see vcountPattern for details).

...

additional arguments passed to matchPattern.

Author(s)

Hajk-Georg Drost

See Also

motif_count, extract_random_seqs_from_genome, extract_hit_seqs_from_genomes


HajkD/metablastr documentation built on Sept. 14, 2023, 5:26 p.m.