Create convert.py

This commit is contained in:
brian herman 2021-03-29 17:49:10 -05:00 committed by GitHub
parent 7633566af4
commit de388a04b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

4
convert.py Normal file
View File

@ -0,0 +1,4 @@
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'))