You could try it with sed
.
Replace all lower-case chars with -
in lines not starting with >
:
sed -e '/^>/!s/[a-z]/-/g' in.fa
You could try it with sed
.
Replace all lower-case chars with -
in lines not starting with >
:
sed -e '/^>/!s/[a-z]/-/g' in.fa