Skip to main content
Use code block not rmarkdown formatting
Source Link
llrs
  • 4.7k
  • 1
  • 19
  • 42

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

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
Source Link

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