aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMunyoki Kilyungi2023-11-22 18:35:27 +0300
committerMunyoki Kilyungi2023-11-22 18:35:27 +0300
commitdbc5bbac28deb8ffe2ae2ec0e037885bba9e5be0 (patch)
treed21feed0fe15fc0a9aca1a12dbf93709fb94625a /examples
parent7ba1c667540cd739730574fc46b3ae1ff99daefd (diff)
downloadgn-transform-databases-dbc5bbac28deb8ffe2ae2ec0e037885bba9e5be0.tar.gz
"Add special-case for blank Chr field".
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/probeset.scm20
1 files changed, 11 insertions, 9 deletions
diff --git a/examples/probeset.scm b/examples/probeset.scm
index 2516740..eeb2dcc 100755
--- a/examples/probeset.scm
+++ b/examples/probeset.scm
@@ -127,15 +127,17 @@
(("Un" mb)
(format #f "Not available"))
((chr "")
- (format #f "Chr ~a @ Unknown position ~a~:[~;~a~]"
- chr mb
- (and (string? strand-probe) (or (string=? "+" strand-probe)
- (string=? "-" strand-probe)))
- (cond ((string=? "+" strand-probe)
- " on the plus strand")
- ((string=? "-" strand-probe)
- " on the minus strand")
- (else ""))))
+ (if (string-blank? chr)
+ (format #f "Not available")
+ (format #f "Chr ~a @ Unknown position ~a~:[~;~a~]"
+ chr mb
+ (and (string? strand-probe) (or (string=? "+" strand-probe)
+ (string=? "-" strand-probe)))
+ (cond ((string=? "+" strand-probe)
+ " on the plus strand")
+ ((string=? "-" strand-probe)
+ " on the minus strand")
+ (else "")))))
(_
(format #f "Chr ~a @ ~a~:[~;~a~]"
chr mb