Open leungmanhin opened 4 years ago
Looks like there are a lot of GO categories that are the leaf nodes yet have no gene members associated, is it normal?
To list them out in Scheme:
(use-modules (opencog) (opencog bioscience)) ; Change the below paths as needed: (primitive-load "GO_2020-04-01.scm") (primitive-load "GO_annotation_gene-level_2020-04-01.scm") (primitive-load "Go-Plus-GO_2020-05-04.scm") (filter (lambda (c) (and (string-prefix? "GO:" (cog-name c)) ; Has no child nodes (= (length (filter (lambda (i) (equal? (gdr i) c)) (cog-incoming-by-type c 'InheritanceLink))) 0) ; Has no members (= (length (filter (lambda (i) (equal? (gdr i) c)) (cog-incoming-by-type c 'MemberLink))) 0))) (cog-get-atoms 'ConceptNode))
Looks like there are a lot of GO categories that are the leaf nodes yet have no gene members associated, is it normal?
To list them out in Scheme: