Permalink
Browse files

Don't normalize by default for fibon-analyse raw output

The raw output is intended to be input into another tool, such as R,
for further processing so don't normalize the data by default. Can
still be overridedn by passing a normalize flag.
  • Loading branch information...
1 parent 708989e commit ff6f7b157cfac22c539f87e23bebffb8b8e73b5e @dmpots committed Oct 7, 2010
Showing with 4 additions and 2 deletions.
  1. +4 −2 tools/fibon-analyse/Fibon/Analyse/CommandLine.hs
View
6 tools/fibon-analyse/Fibon/Analyse/CommandLine.hs
@@ -51,9 +51,11 @@ options = [
,
Option ['r'] ["raw"]
(ReqArg (\a mbOpt -> process mbOpt (\o ->
+ let noNorm = o {optNormalizeBy = ByNone} in
case a of
- "\\t" -> setFormat (SimpleText "\t") o
- _ -> setFormat (SimpleText a) o)) "sep")
+ "\\t" -> setFormat (SimpleText "\t") noNorm
+ _ -> setFormat (SimpleText a) noNorm))
+ "sep")
"raw data with seperator"
,
Option ['n'] ["normalize"]

0 comments on commit ff6f7b1

Please sign in to comment.