FAPM_demo / data /fasta /prepare_custom_fasta.py
wenkai's picture
Upload 24 files
4a1f168 verified
raw
history blame
312 Bytes
# prepare fasta data
name_list = ['P18281']
sequence_list = ['MNPELQSAIGQGAALKHAETVDKSAPQIENVTVKKVDRSSFLEEVAKPHELKHAETVDKSGPAIPEDVHVKKVDRGAFLSEIEKAAKQ']
with open('example.fasta', 'w') as f:
for i, j in zip(name_list, sequence_list):
f.write('>{}\n'.format(i))
f.write('{}\n'.format(j))