Skip to content

Commit

Permalink
Pretty-print numeric option.
Browse files Browse the repository at this point in the history
  • Loading branch information
rekado committed Oct 6, 2016
1 parent 402dd6f commit 27e2718
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions rcas/utils/report.scm
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,17 @@ in R, i.e. to from hyphenated lowercase to camelCase."
(cons "Run motif analysis"
(if value "yes" "no")))
(('genomeVersion . genome)
(cons "Genome version" genome)))
(cons "Genome version" genome))
(('sampleN . value)
(if (zero? value) #f
(cons "Downsampled intervals"
(format #f "~:d" value)))))
(call-with-input-string options read)))

(define (options-as-table options-string)
`(table ,@(map (match-lambda
((label . value)
`(tr (th ,label)
(td ,value))))
(td ,value)))
(_ ""))
(prettify-options options-string))))

0 comments on commit 27e2718

Please sign in to comment.