Darwin Help

Back to Index

SPCommonName

Function SPCommonName - common name of the species of the entry or scientific name

Calling Sequence  SPCommonName(entry)
Parameters
NameTypeDescription

entry anythingany description of an entry or entry number
Return Type  string
Synopsis SPCommonName finds the common name of the species of the given entry. If the input is the scientific name of a species, SPCommonName will try to locate an entry with that name to use it. The common name is found within parenthesis in the OS entry in SwissProt databases. If the database in DB does not conform to this rule, the function may not work properly. If no common name is found, it returns the species name. If no species name is found, it returns the AC or ID or "no name". This function is useful to provide simple labels for plots.
Examples
> SPCommonName(AC(P13475));
Slime mold
> SPCommonName('Raphicerus campestris');
Steenbok
> SPCommonName(AC(P00083));
Rhodopseudomonas viridis
See also DbToDarwin,   GetEntryInfo,   SearchAC,   SearchID,   SP_Species,   Species_Entry