The next three are easier than the rest. Get help if you are struggling with these:
itertools.combinations
function from the itertools
module. For example:import itertools
#combinations function from itertools module pulls all pairwise (2) keys from dict
for k1,k2 in itertools.combinations(datadict, 2):
#k1 is one key from datadict
#k2 is another key from datadict
#do something with them
re
module and the regular expressions page in the Python for Biologists tutorial. The urllib.request
module may be useful or try parsing SwissProt records with Biopython.On the due date, in class, you may be asked questions about how your code works and your comments will help you explain. Inability to explain how your code works will result in a reduced grade.
compbio.cs.luc.edu
and test running your scripts from the command line
scp
commandsys
and argparse
compbio
server: /homes/hwheeler/python_examples/DNA.py