Usage:
fasta-re-match [options] <IUPAC DNA Motif>
Options:
-norc Only find matches to motifs in the given strand
-erase <IUPAC DNA Motif> erases this motif before finding matches;
repeatable; order matters!
-help prints this help message
Reads sequences from standard input.
Writes to standard output tab separated (space padded) columns:
<matching sequence> <strand +-> <line number> <column number> <sequence offset> <sequence name>
If you are trying to recreate DREME motif sites note that DREME erases
previously found motifs so you will have to use the -erase option for any but
the first motif, like:
fasta-re-match -erase CCMCRCCC TTATCW < sample-dna-Klf1.fa
If you want a count of sites try piping the output to "wc -l" like:
fasta-re-match CCMCRCCC < sample-dna-Klf1.fa | wc -l
If you want only one of the columns try piping the output to "cut -f <num>" like:
fasta-re-match CCMCRCCC < sample-dna-Klf1.fa | cut -f 1