Assemblies-of-putative-SARS.../convert.py
2021-03-29 17:49:10 -05:00

5 lines
176 B
Python

from skbio import DNA, RNA, Sequence
rna_seq = RNA(open('raw.txt').read().replace('T','U'))
with open('moderna.gb', 'w+') as fh:
print(rna_seq.write(fh, format='genbank'))