add_synonym

Usage:        $self->add_synonym($synonym , { type => 'exact' , autocreate => 1} );
Desc:         adds the synonym $new_synonym to this cvterm
              If the synonym $new_synonym already exists, 
              nothing is added.
Args:         a synonym name  and
   options hashref as:
         {
           synonym_type => [e.g. exact, narrow, broad, related],
           autocreate => 0,
              (optional) boolean, if passed, automatically create cv,
              cvterm, and dbxref rows if one cannot be found for the
              given featureprop name.  Default false.

           cv_name => cv.name to use for the given synonym type.
                      Defaults to 'synonym_type',

           db_name => db.name to use for autocreated dbxrefs,
                      default 'null',

           definitions => optional hashref of:
               { cvterm_name => definition,
               }
            to load into the cvterm table when autocreating cvterms
         }
Ret:          a Cvtermsynonym object
Example:

delete_synonym

Usage: $self->delete_synonym($synonym)
Desc:  delete synonym $synonym from cvterm object
 Ret:  nothing
Args: $synonym
Side Effects: Will delete all cvtermsynonyms with synonym=$synonym. Case insensitive 
Example:

get_secondary_dbxrefs

Usage: $self->get_secondary_dbxrefs()
Desc:  find all secondary accessions associated with the cvterm
        These are stored in cvterm_dbxref table as dbxref_ids
Ret:    a list of accessions (e.g. GO:0000123)
Args:   none
Side Effects: none
Example:

add_secondary_dbxref

Usage: $self->add_secondary_dbxref(accession, 1)
Desc:  add an alternative id to cvterm. Stores in cvterm_dbxref
Ret:   a CvtermDbxref object
Args:  an alternative id (i.e. "GO:0001234"). A second arg will store a is_for_definition=1 (default = 0)
Side Effects: stores a new dbxref if accession is not found in dbxref table
Example:

delete_secondary_dbxref

Usage: $self->delete_secondary_dbxref($accession)
Desc:  delete a cvterm_dbxref from the database 
Ret:   nothing
Args:  full accession (db_name:dbxref_accession e.g. PO:0001234)
Side Effects:
Example: