See Phred excellent tutorial here!