# HG changeset patch # User greg # Date 1498565814 14400 # Node ID c19c48db9f79b41d4ac60911ff48857a1a2be04c # Parent ae25785e78e14d58fc933b3a184a208e9a0b8f57 Uploaded diff -r ae25785e78e1 -r c19c48db9f79 ks_distribution.R --- a/ks_distribution.R Tue Jun 27 08:06:19 2017 -0400 +++ b/ks_distribution.R Tue Jun 27 08:16:54 2017 -0400 @@ -7,7 +7,7 @@ make_option(c("-k", "--kaks_input"), action="store", dest="kaks_input", help="KaKs analysis input dataset"), make_option(c("-n", "--number_comp"), action="store", dest="number_comp", type="integer", help="Number of significant components in the Ks distribution"), make_option(c("-o", "--output"), action="store", dest="output", help="Output dataset"), - make_option(c("-s", "--specified_colors"), action="store", dest="specified_colors", default=NA, help="List of component colors") + make_option(c("-s", "--specified_colors"), action="store", dest="specified_colors", default=NULL, help="List of component colors") ) parser <- OptionParser(usage="%prog [options] file", option_list=option_list) @@ -17,7 +17,7 @@ set_component_colors = function(colors, number_comp) { # Handle colors for components. - if (is.na(colors)) { + if (is.null(colors)) { # Randomly specify colors for components. component_colors <- c('red', 'yellow', 'green', 'black', 'blue', 'darkorange') } else {