NAME

ancestors.pl - prints paths from root to a GO node

SYNOPSIS

ancestors.pl simply takes as input a GOID, an obo file, and an ontology aspect (P, C or F) and prints out the all the paths from that GO node to the root of the ontology, e.g:

    >ancestors.pl GO:0008346 ../t/gene_ontology_edit.obo P
    GO:0003673    Gene_Ontology
        GO:0008150    biological_process
            GO:0050896    response to stimulus
                GO:0007610    behavior
                    GO:0007626    locomotory behavior
                        GO:0008345    larval locomotory behavior
                            GO:0008346    larval walking behavior

    GO:0003673    Gene_Ontology
        GO:0008150    biological_process
            GO:0050896    response to stimulus
                GO:0007610    behavior
                    GO:0030537    larval behavior
                        GO:0008345    larval locomotory behavior
                            GO:0008346    larval walking behavior

AUTHORS

Gavin Sherlock, sherlock@genome.stanford.edu