from Bio.SeqUtils import MeltingTemp as MT
primerfile = '/home/sb/bioinfo/primerlist.txt'
# w is the name of a newly created workbook.
w = pyExcelerator.Workbook()
# ws is the name of a new sheet in this workbook.
ws = w.add_sheet('Result')
# These two lines writes the titles of the columns.
i = 1
for line in open(primerfile):
# For each line in the input file, write the primer
# sequence and the Tm
j = 0
primer = line.replace('\n','')
i += 1
# Save the spreadsheel into a file.
This code is part of the book "Python for Bioinformatics", by Sebastian Bassi (email@example.com). Return to home page.