Skip to content

GO with no genes associated? #31

Description

@leungmanhin

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))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions