Table of Contents

Practical Introduction to Programming for Scientists

Spring 2018

Mondays & Fridays, 9am - 10:30 N315

For several reasons I use this site rather than Blackboard, this Wiki page will host all class material, including:


Lecture Notes Video Homework Other
1 - Introduction http://blake.bcm.edu/dl/EMAN2/lecture_1.pdf
http://blake.bcm.edu/dl/EMAN2/notebook_1.ipynb
Lecture Video 1. Take this survey: https://goo.gl/forms/ys63VOoY5aVEeLo42
2. Install Anaconda 5 Python 3.6 on your laptop
3. Follow the test procedure on the last page of the lecture notes
2 - Loops and Conditionals, Team Learning http://blake.bcm.edu/dl/EMAN2/lecture_2.pdf
http://blake.bcm.edu/dl/EMAN2/group_2.pdf
http://blake.bcm.edu/dl/EMAN2/notebook_2.ipynb
Sorry, video failed Team learning due by midnight Monday, Jan 8
Homework due by midnight Thursday, Jan 11
3 - Writing programs http://blake.bcm.edu/dl/EMAN2/lecture_3.pdf
http://blake.bcm.edu/dl/EMAN2/notebook_3.ipynb
Lecture Video No class Monday (holiday). Homework due by midnight Thursday.
4 - Standard Libraries, Biopython http://blake.bcm.edu/dl/EMAN2/lecture_4.pdf
http://blake.bcm.edu/dl/EMAN2/notebook_4.ipynb
Lecture Video Homework due by Thursday at Midnight
5 - Numerical Computing and Plotting, Team Learning http://blake.bcm.edu/dl/EMAN2/lecture_5.pdf
http://blake.bcm.edu/dl/EMAN2/team_5.pdf
http://blake.bcm.edu/dl/EMAN2/notebook_5.ipynb
Lecture Video Team Learning due by Midnight Today (monday) File for team learning: http://blake.bcm.edu/dl/EMAN2/curve.txt
6 - Complex Data representations http://blake.bcm.edu/dl/EMAN2/lecture_6.pdf Unfortunately, the new version of my screen recorder crashed my computer (again) and lost the recording. This lecture from last year was very similar, but not identical. The missed homework review doesn't matter since the homework was different.
2017 Lecture Video
7 - Web Scraping, File I/O, Command Line http://blake.bcm.edu/dl/EMAN2/lecture_7.pdf
http://blake.bcm.edu/dl/EMAN2/team_7.pdf
http://blake.bcm.edu/dl/EMAN2/notebook_7.ipynb
Lecture Video Team Learning due by Midnight Today (monday)
8 - Image Processing http://blake.bcm.edu/dl/EMAN2/lecture_8.pdf Lecture Video Homework due Thursday at Midnight as usual
9 - Regular Expressions http://blake.bcm.edu/dl/EMAN2/lecture_9.pdf
http://blake.bcm.edu/dl/EMAN2/team_9.pdf
Lecture Video Team Learning due by Midnight Today (monday) http://blake.bcm.edu/dl/EMAN2/ecoli.k12.txt
10 - The Art of Programming, Data compression http://blake.bcm.edu/dl/EMAN2/lecture_10.pdf Lecture Video
11 - Making, Interfacing http://blake.bcm.edu/dl/EMAN2/lecture_11.pdf
http://blake.bcm.edu/dl/EMAN2/team_11a.pdf
http://blake.bcm.edu/dl/EMAN2/team_11b.pdf
Lecture Video Nothing to turn in for team learning
12 - Graphical User Interfaces http://blake.bcm.edu/dl/EMAN2/lecture_12.pdf Lecture Video
13 - Databases, Daemons and the Internet http://blake.bcm.edu/dl/EMAN2/lecture_13.pdf Lecture Video

—-

Important Instructions for Class Projects

If you believe you will need an exception to something below, please ask by Feb 23 (the final lecture !)

For your class presentation, your first slide should have:

Please follow these instructions exactly:

Important notes

Anaconda is available here: https://www.anaconda.com/download (you want the Python 3.6 version of Anaconda 5)

Textbook

I started writing an introduction to programming book some years ago, and while I haven't gotten around to finishing it, some other classes have found it a useful supplement to the class lectures, particularly for people just starting with programming. For that reason I'm making the current (very incomplete) draft of the book available to you:

Class Project Overview

The class project will count for 1/2 of your grade in the class, and will be scored on both your presentation and the program itself. You will likely have only ~5 minutes to present your projects when the time comes, but that shouldn't limit their complexity or your ambitions. It is a good idea to select a project which is somewhat ambitious but has some fallback positions in case you don't succeed in everything you had planned to do. Your initial project plan will not be a factor in your final grade. If the program meets the criteria below, even if it's very different than your original aim, you will still receive full credit.

Each person will, over the course of the term, write a program, and briefly present it at the end of the term. The sole requirements for the program are: 1. It must do something useful not easily completed with existing freely available tools 2. Not be completely trivial. The complexity of your project is expected to correspond somewhat to your level of past programming experience.

Examples of past class projects


This class attracts people with widely varying backgrounds and skill levels. Since the course is supposed to be accessible to people with little to no programming experience, the bar for achieving an acceptable grade (B) in the class is set fairly low. If you make a reasonable attempt at all of the homework assignments, even if not completely successful, and complete a class project of some sort, you can expect to get at least a B in the class. This does not mean you can slip through without making an effort at all. Particularly if you have no programming experience, the class WILL take a significant effort on your part. Those who don't make a reasonable attempt at virtually every assignment may not achieve a B. Turning in something incomplete is better than turning in nothing at all.

Auditors are welcome, but if possible (all students, and some others) please formally audit the class, rather than just showing up. 1) this means you have at least a small commitment to actually attend and 2) if you don't formally audit, the GS has no record of your interest and they may give me a very small room to teach in next time (not that we need N315).