Wednesday, April 11, 2012

Convert FASTA file RNA to DNA using sed on the linux command line

sed '/^[^>]/ y/uU/tT/' uracil.fasta > thymine.fasta 



Piece of cake.

1 comment:

  1. As a follow up, to strip ambiguous nucleotides from a fasta file, you could use:

    sed '/^[^>]/ s/n//g'

    ReplyDelete