@@ -436,8 +436,9 @@ in the specified namespaces."
436
436
If do-protein is #t then protein interactions are included.
437
437
"
438
438
(map
439
- (lambda (act-gene )
440
- (generate-result gene act-gene do-protein namespace parents coding non-coding))
439
+ (lambda (act-gene ) (ListLink
440
+ (generate-result gene act-gene do-protein
441
+ namespace parents coding non-coding)))
441
442
442
443
(run-query (Get
443
444
(VariableList
@@ -459,8 +460,8 @@ in the specified namespaces."
459
460
If do-protein is #t then protein interactions are included.
460
461
"
461
462
(map
462
- (lambda (gene-pair )
463
- (generate-result (gar gene-pair) (gdr gene-pair) do-protein namespace parents coding non-coding))
463
+ (lambda (gene-pair ) (ListLink
464
+ (generate-result (gar gene-pair) (gdr gene-pair) do-protein namespace parents coding non-coding)))
464
465
465
466
(run-query (Get
466
467
(VariableList
@@ -544,7 +545,7 @@ in the specified namespaces."
544
545
545
546
; ; ---------------------------------
546
547
547
- (define-public (generate-result gene-a gene-b do-protein namespaces num-parents
548
+ (define (generate-result gene-a gene-b do-protein namespaces num-parents
548
549
coding-rna non-coding-rna)
549
550
"
550
551
generate-result -- add info about matched variable nodes
@@ -562,7 +563,7 @@ in the specified namespaces."
562
563
(if
563
564
(or (equal? (cog-type gene-a) 'VariableNode )
564
565
(equal? (cog-type gene-b) 'VariableNode ))
565
- (ListLink )
566
+ '( )
566
567
(let* (
567
568
[already-done-a ((biogrid-genes) gene-a)]
568
569
[already-done-b ((biogrid-genes) gene-b)]
@@ -604,8 +605,8 @@ in the specified namespaces."
604
605
[coding-prot-b (find-protein-form gene-b)])
605
606
(if (or (equal? coding-prot-a (ListLink))
606
607
(equal? coding-prot-b (ListLink)))
607
- (ListLink )
608
- (ListLink
608
+ '( )
609
+ (list
609
610
interaction
610
611
(Evaluation (Predicate " expresses" ) (List gene-a coding-prot-a))
611
612
(node-info gene-a)
@@ -619,7 +620,7 @@ in the specified namespaces."
619
620
rna-cross-annotation
620
621
)
621
622
))
622
- (ListLink
623
+ (list
623
624
interaction
624
625
(node-info gene-a)
625
626
(locate-node gene-a)
@@ -652,8 +653,8 @@ in the specified namespaces."
652
653
(if do-protein
653
654
(let ([coding-prot (find-protein-form gene-x)])
654
655
(if (equal? coding-prot (ListLink))
655
- (ListLink )
656
- (ListLink
656
+ '( )
657
+ (list
657
658
interaction
658
659
(Evaluation (Predicate " expresses" ) (List gene-x coding-prot))
659
660
(node-info gene-x)
@@ -662,7 +663,7 @@ in the specified namespaces."
662
663
go-cross-annotation
663
664
rna-cross-annotation)
664
665
))
665
- (ListLink
666
+ (list
666
667
interaction
667
668
(node-info gene-x)
668
669
(locate-node gene-x)
@@ -671,7 +672,7 @@ in the specified namespaces."
671
672
)))
672
673
673
674
; ;; Both of the genes have been done.
674
- (else (if already-done-pair (ListLink ) (ListLink interaction)))
675
+ (else (if already-done-pair '( ) (list interaction)))
675
676
)
676
677
)
677
678
)
0 commit comments