Practical Introduction to Programming for Scientists

Spring 2016

Mondays & Fridays, 9am - 10:30 N315

Since some of you don't have Blackboard access, this Wiki page will host all class material, including:

Note that this class now uses Python 3.5 via a free distribution called Anaconda available for Linux, Max and Windows. By using a common environment, it is easier to deal with the differences between Python on different platforms. The default Python available on Linux and Mac is still Python 2.7. Please make sure you set up Anaconda 3.5 and use that instead.


Lecture

Notes

Video

Homework

Other

1 - Introduction

lecture_1.pdf
terminal_1.txt

Lecture Video

1. Take this survey: http://goo.gl/forms/5UfNTRexSw
2. Email passport style photo to sludtke@bcm.edu
3. Get Anaconda Python 3.5 set up on your laptop

2 - Program Flow

lecture_2.pdf
terminal_2.txt

Lecture Video

Homework is on last 3 pages of lecture notes

practice_soln_1.pdf

3 - Writing Programs

lecture_3.pdf

Lecture Video

Homework is on last page of lecture notes

translate.py

4 - Python Modules

lecture_4.pdf

Lecture Video

Make sure you install BioPython in Anaconda (see 2nd to last slide)
Remember your laptop next Friday
Homework is on last page of lecture notes

5 - Biopython
Mini-lab

lecture_5.pdf

Lecture Video

I am going to ask for your planned class project topic next Monday!

pubmed.py

6 - Math & NumPy

lecture_6.pdf

Lecture Video

Last page of the handout

plotme.txt

7 - Object Oriented Programming & XML

lecture_7.pdf

Lecture Video

Last page of the handout

8 - Image Processing and Scope

lecture_8.pdf

Lecture Video

Last page of the handout

9 - Writing Programs, Debugging, Tkinter

lecture_9.pdf

Lecture Video

No Homework

10 - Computer Hardware, Compression, Databases

lecture_10.pdf

Lecture Video

No Homework

11 - Network Programming, JavaScript

lecture_11.pdf

Lecture Video

A week from Monday I will ask for your in-progress class projects
Bring your laptops again next Friday!

udp_chat.py

12 - Interacting with the Outside World

lecture_12.pdf

Lecture Video

13 - Regular Expressions
PyQt4

lecture_13.pdf

Lecture Video

Class projects due this Saturday by Midnight! (see below)

14 - Recursion
Web Frameworks

lecture_14.pdf

Lecture Video

Class projects due this Saturday by Midnight! (see below)


Important Instructions for Class Projects

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

For your class presentation, your first slide should have:

Please follow these instructions exactly:

Note: If your project requires data files too large to email (even for a basic demonstration), you can share the extra files with me via BigFile, DropBox or Google Drive. If you need to do this, prepare the files in advance, and include the download instructions in the PDF in the .zip file.

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 at all, 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.

Homework will be assigned each class, due before the next class, at least for the first 2/3 of the term, and is handed in via email to the class TA, James (Michael) Bell <James.Bell@bcm.edu>, with a cc to sludtke@bcm.edu. We will go over solutions to homework assignments in-class. Since the class is offered for credit, homework will be graded, but on a lenient scale:

  1. Homework turned in, something attempted, but not functional
  2. A good effort, but with major flaws
  3. Largely correct solution, but with some flaws
  4. Program does what it should, with minimal flaws

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.


LectureVideo/IntroProgramming16 (last edited 2016-02-29 14:23:27 by SteveLudtke)