Harvard:Biophysics 101/2007/02/06: Difference between revisions

From OpenWetWare
Jump to navigationJump to search
mNo edit summary
Line 3: Line 3:


==Q&A==
==Q&A==
*Q: "When I'm editing a page, is there any way to do it in a box that is bigger than the single-line tiny editing box that comes up at first?"
*Q1: "When I'm editing a page, is there any way to do it in a box that is bigger than the single-line tiny editing box that comes up at first?"
*A: Visit the [[Special:Preferences|my preferences]] link in the upper right-hand corner of the page.  Under the "Editing" tab, set Rows: 25, Columns: 80.
*A1: Visit the [[Special:Preferences|my preferences]] link in the upper right-hand corner of the page.  Under the "Editing" tab, set Rows: 25, Columns: 80.
*Q2: "How do I install BioPython on OS X?"
*A2: The [[Harvard:Biophysics_101/2007:Python|Python]] page has been updated with more detailed instructions.


==Tasks to complete by Feb 8==
==Tasks to complete by Feb 8==

Revision as of 14:35, 6 February 2007

Biophysics 101: Genomics, Computing, and Economics

Home        People        Schedule        Project        Python        Help       

Q&A

  • Q1: "When I'm editing a page, is there any way to do it in a box that is bigger than the single-line tiny editing box that comes up at first?"
  • A1: Visit the my preferences link in the upper right-hand corner of the page. Under the "Editing" tab, set Rows: 25, Columns: 80.
  • Q2: "How do I install BioPython on OS X?"
  • A2: The Python page has been updated with more detailed instructions.

Tasks to complete by Feb 8

  • Complete Feb 1 tasks
  • Write a python script that generates 10,000 strings of 10 random coinflips (H or T) and outputs the tally of continguous (overlapping) stretches of 2, 3, 4, 5, 6, 7, 8, 9, and 10 H's or T's in that set of 10,000 10-mers.
  • Post your code to your personal calendar entry for Feb 8, along with the output when it is run.
  • Hints
    • You may find it useful to read about the random module, specifically "choice()"
    • You can reuse a modified version of substring the matching "Method 2" from the first assignment
    • If you have programming experience, try to do the exercise on your own
    • If you have no idea where to start, you can look at this template
  • General
    • Try to read the Python tutorial. Specifically, chapters 3 and 4.
    • Practice trying out different things that you do not understand.
    • Modify code and see if it does what you expect.
    • Use lots of print statements.
    • The range() Function is covered in chapter 4
    • List comprehensions and loops are covered in chapter 5