Skip to contents

Read position weight matrices from a directory of .pwm files and return as a TFBSTools::PWMatrixList. Each .pwm file should contain a header line starting with > followed by the motif ID, and subsequent lines containing a position x 4 nucleotide matrix (columns: A, C, G, T).

Usage

ReadPWM(pwm_dir, short_names = TRUE)

Arguments

pwm_dir

Path to directory containing .pwm files

short_names

Use the first section of the motif ID (before the first .) as the motif name. For example, AHR.H14CORE.0.P.B becomes AHR. Default is TRUE.