revcomp-fasta.py 164 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
'''
python revcomp-fasta.py < in.fa > out.fa
'''

import fasta
import sys

for f in fasta.parse_as_Fasta(sys.stdin):
    f.revcomp()
    sys.stdout.write(str(f))