|
|||||||||
19-01-2011: Writing Programs to Aid Analysis & Discovery
Part 1: Basic Ruby Programming Mr. Andrew Jackson - andrewj@bcm.eduProject News:
2011/01/20: Lecture 1 - Exercises
The exercises for Lecture 1 are available under Quick Links to the left. And here, for convenience. 2011/01/19: Example Ruby File
The Ruby code in the file "probesPerGene.rb" below is an example of putting a bunch of Ruby code into a file so it can be run on demand. I ran it by doing this at the command line: ruby ./probesPerGene.rb It will look for a file named "methylationProbeInfo.lff" in the same dir (you can get this by uncompressing methylationProbeInfo.lff.gz provided below). Then it does this:
Important Links:
Learning Ruby
An "essentials" tutorial covering the major aspects of Ruby, organized along a classic introduction to a new programming language tutorial. Short.
Ruby Basic Tutorial
Another introductory tutorial for Ruby. Long. Lots of example code and colored boxes.
Ruby Tutorial With Code Samples
Organized hands-on tutorial with code examples. Gets going fast, jumping right into defining your own functions, but then slows down and covers many of the same topics as in the lecture. But better and with more interesting tidbits.
Rubydocs!!
Rubydoc site covering core language classes and standard libary classes. I recommend doing "rubydoc <className>" in Google as the best entry into this site.
Try Ruby!
A "15 minute" interactive tutorial that explains some basic Ruby things (live) and has you try some of them (live). Good for getting going quickly.
Basic Programming in Ruby
|
|||||||||
|
|
|||||||||