Replace lowercase characters with -
The following sed command will do the trick.

sed -e '/^[^&gt;]/ s/[a-z]/\-/g' in.fna &gt; out.fna

Lines starting with &gt; will be escaped and the lowercase characters will be replaced with - .