Finding the total number of terms and relationships in a given ontology

## Basic metrics in an ontology

1. Get the total number of terms and relationships in a given ontology.

1. Get the total number of terms and relationships in a given ontology:

       			use OBO::Parser::OBOParser;

       			my $my_parser = OBO::Parser::OBOParser->new();
       			my $ontology = $my_parser->work("my_obo_ontology.obo");

       			print "My ontology has ", $onto->get_number_of_terms(), " terms\n";

       			print "My ontology has ", $onto->get_number_of_relationships(), " relationships\n";

Copyright (c) 2006-2015 by Erick Antezana. All rights reserved.