MCB112: Biological Data Analysis (Fall 2018)

answers 01:

the case of the dead sand mouse

Various different answers from us as Jupyter Notebook pages you can download. This week is a bonanza of possible answers available for you; in future weeks, we'll focus effort more, and it'll be more like three, two from two chosen TFs each week, and one from me.

No matter what the pythonistas say, there isn't just One Right Way to solve a problem in python. By comparing the different answers, you'll start seeing a range of different approaches and tricks. For example, in comparing the Moriarty and Adler gene name lists for part 1, a naturally pythonic approach is to use set operations, subtracting one set from the other. But you can just as easily iterate over the gene names in one list and test if a gene name is not in the other list. Python has some very powerful syntax, such as list comprehensions and lambdas (anonymous functions), which is helpful (if you know them) but not necessary (if you don't). You'll see examples of more or less clever syntax here, but all of it's getting the job done.