Skip to contents

Read position frequency matrices (PFMs) from a JASPAR-format file and convert to position weight matrices (PWMs). Each motif entry should have a header line starting with > followed by 4 rows (A, C, G, T). Rows may optionally include nucleotide labels and brackets (e.g. A [ 4 19 0 0 ]).

Usage

ReadJASPAR(file, pseudocount = 1)

Arguments

file

Path to JASPAR-format PFM file

pseudocount

Pseudocount added during PFM to PWM conversion