embgroup.c


Function embGrpGetProgGroups

Optionally constructs a path to the directory of normal EMBOSS or embassy ACD files. Calls grpGetAcdFiles to construct lists of the group, doc and program name information.

Prototype

void embGrpGetProgGroups (
      AjPList glist,
      AjPList alpha,
      char* const[] env,
      AjBool emboss,
      AjBool embassy,
      const AjPStr embassyname,
      AjBool explode,
      AjBool colon,
      AjBool gui
);

TypeNameRead/WriteDescription
AjPListglistOutputList of groups of programs
AjPListalphaOutputAlphabetic list of programs
char* const[]envInputEnvironment passed in from C main() parameters
AjBoolembossInputRead in EMBOSS ACD data
AjBoolembassyInputRead in EMBASSY ACD data
const AjPStrembassynameInputName of embassy package. default is to search for all
AjBoolexplodeInputExpand group names around ':'
AjBoolcolonInputRetain ':' in group names
AjBoolguiInputOnly report programs that are OK in GUIs
void RETURN

From EMBOSS 1.0.0


Function embGrpGetEmbassy

Optionally constructs a path to the directory of normal EMBOSS or embassy ACD files. Calls grpGetAcdFiles to construct lists of the group, doc and program name information.

Prototype

AjBool embGrpGetEmbassy (
      const AjPStr appname,
      AjPStr* embassyname
);

TypeNameRead/WriteDescription
const AjPStrappnameInputApplication name
AjPStr*embassynameOutputEmbassy package attribute value, or an empty string if in the main package
AjBool RETURNajTrue if an ACD file was found

From EMBOSS 4.1.0


Function embGrpMakeNewGnode

Creates a new pointer to a Gnode struct for holding a group's name and pointer to a list of programs (also held in Gnodes).

Prototype

EmbPGroupTop embGrpMakeNewGnode (
      const AjPStr name
);

TypeNameRead/WriteDescription
const AjPStrnameInputName of the group
EmbPGroupTop RETURNpointer to a new GPnode struct

From EMBOSS 2.0.0


Function embGrpMakeNewPnode

Creates a new pointer to a Gnode struct for holding a program's name and documentation.

Prototype

EmbPGroupProg embGrpMakeNewPnode (
      const AjPStr name,
      const AjPStr doc,
      const AjPStr keywords,
      const AjPStr package
);

TypeNameRead/WriteDescription
const AjPStrnameInputName of the program
const AjPStrdocInputDescription of the program
const AjPStrkeywordsInputKeywords for this program with underscores for spaces and with spaces as separators
const AjPStrpackageInputName of the package
EmbPGroupProg RETURNpointer to a new gnode struct

From EMBOSS 2.0.0


Function embGrpSortGroupsList

Sort a list of GPnodes by their name.

Prototype

void embGrpSortGroupsList (
      AjPList groupslist
);

TypeNameRead/WriteDescription
AjPListgroupslistModifyList to sort
void RETURN

From EMBOSS 2.0.0


Function embGrpSortProgsList

Sort a list of Pnodes by their name.

Prototype

void embGrpSortProgsList (
      AjPList progslist
);

TypeNameRead/WriteDescription
AjPListprogslistModifyList to sort
void RETURN

From EMBOSS 4.0.0


Function embGrpCompareTwoGnodes

Compare two Gnodes as case-insensitive strings.

Prototype

ajint embGrpCompareTwoGnodes (
      const void* a,
      const void* b
);

TypeNameRead/WriteDescription
const void*aInputFirst node
const void*bInputSecond node
ajint RETURNCompare value (-1, 0, +1)

From EMBOSS 2.0.0


Function embGrpCompareTwoPnodes

Compare two Pnodes as case-insensitive strings.

Prototype

ajint embGrpCompareTwoPnodes (
      const void* a,
      const void* b
);

TypeNameRead/WriteDescription
const void*aInputFirst node
const void*bInputSecond node
ajint RETURNCompare value (-1, 0, +1)

From EMBOSS 4.0.0


Function embGrpOutputGroupsList

Displays a list of groups to an output file handle.

Prototype

void embGrpOutputGroupsList (
      AjPFile outfile,
      const AjPList groupslist,
      AjBool showprogs,
      AjBool html,
      AjBool showkey,
      const AjPStr package
);

TypeNameRead/WriteDescription
AjPFileoutfileModifyOutput file handle
const AjPListgroupslistInputList of groups to be displayed
AjBoolshowprogsInputIf True, display the programs in each group
AjBoolhtmlInputIf True, format for HTML, else make a simple list
AjBoolshowkeyInputIf True, show keywords
const AjPStrpackageInputName of current package
void RETURN

From EMBOSS 2.0.0


Function embGrpOutputProgsList

Displays a list of programs and their descriptions to an output file handle.

Prototype

void embGrpOutputProgsList (
      AjPFile outfile,
      const AjPList progslist,
      AjBool html,
      AjBool showkey,
      const AjPStr package
);

TypeNameRead/WriteDescription
AjPFileoutfileModifyOutput file handle
const AjPListprogslistInputList of programs to be displayed
AjBoolhtmlInputIf True, format for HTML, else make a simple list
AjBoolshowkeyInputShow keywords in output
const AjPStrpackageInputName of current package
void RETURN

From EMBOSS 2.0.0


Function embGrpGroupsListDel

Destructor for a groups list

Prototype

void embGrpGroupsListDel (
      AjPList* groupslist
);

TypeNameRead/WriteDescription
AjPList*groupslistDeleteList of groups to be destroyed
void RETURN

From EMBOSS 2.0.0


Function embGrpProgsListDel

Destructor for a groups list

Prototype

void embGrpProgsListDel (
      AjPList* progslist
);

TypeNameRead/WriteDescription
AjPList*progslistDeleteList of programs to be destroyed
void RETURN

From EMBOSS 4.0.0


Function embGrpProgDel

Destructor for a program node

Prototype

void embGrpProgDel (
      EmbPGroupProg* Pgl
);

TypeNameRead/WriteDescription
EmbPGroupProg*PglDeleteProgram node
void RETURN

From EMBOSS 6.4.0


Function embGrpRelationsListDel

Destructor for a relations list

Prototype

void embGrpRelationsListDel (
      AjPList* relslist
);

TypeNameRead/WriteDescription
AjPList*relslistDeleteList of relations to be destroyed
void RETURN

From EMBOSS 6.4.0


Function embGrpKeySearchProgs

Searches a list of groups and programs for (partial) matches to a keyword

Prototype

void embGrpKeySearchProgs (
      AjPList newlist,
      const AjPList glist,
      const AjPStr key,
      AjBool all
);

TypeNameRead/WriteDescription
AjPListnewlistOutputList of matching EmbPGroupProg struct returned
const AjPListglistInputList of EmbPGroupProg struct to search through
const AjPStrkeyInputString to search for
AjBoolallInputMatch all words in key search string
void RETURN

From EMBOSS 2.0.0


Function embGrpSearchProgsEdam

Searches a list of groups and programs for (partial) matches to EDAM topic terms

Prototype

void embGrpSearchProgsEdam (
      AjPList newlist,
      const AjPList glist,
      const AjPStr query,
      const char* namespace,
      AjBool sensitive,
      AjBool subclasses,
      AjBool obsolete
);

TypeNameRead/WriteDescription
AjPListnewlistOutputList of matching EmbPGroupProg struct returned
const AjPListglistInputList of EmbPGroupProg struct to search through
const AjPStrqueryInputString(s) to search for
const char*namespaceInputEDAM namespace to search
AjBoolsensitiveInputMatch EDAM definitions
AjBoolsubclassesInputMatch EDAM subclasses
AjBoolobsoleteInputMatch EDAM obsolete terms
void RETURN

From EMBOSS 6.4.0


Function embGrpKeySearchSeeAlso

Takes an application name and returns a list of the groups that the application belongs to and a list of the applications that are in those groups.

Prototype

void embGrpKeySearchSeeAlso (
      AjPList newlist,
      AjPList* appgroups,
      AjPStr* package,
      const AjPList alpha,
      const AjPList glist,
      const AjPStr key
);

TypeNameRead/WriteDescription
AjPListnewlistModifyList of application groups EmbPGroupTop returned
AjPList*appgroupsOutputList of EmbPGroupTop groups of programs returned
AjPStr*packageOutputList of EmbPGroupTop groups of programs
const AjPListalphaInputList of EmbPGroupProg struct to search through
const AjPListglistInputList of EmbPGroupTop struct to search through
const AjPStrkeyInputprogram name to search for
void RETURN

From EMBOSS 2.0.0


Function embGrpProgsMakeUnique

Takes a sorted EmbPGroupProg list and ensures that there are no duplicate group or application names in that list.

Prototype

void embGrpProgsMakeUnique (
      AjPList list
);

TypeNameRead/WriteDescription
AjPListlistModifyList of application GPnode returned
void RETURN

From EMBOSS 4.0.0


Function embGrpGroupMakeUnique

Takes a sorted EmbPGroupTop list and ensures that there are no duplicate group or application names in that list.

Prototype

void embGrpGroupMakeUnique (
      AjPList list
);

TypeNameRead/WriteDescription
AjPListlistModifyList of application GPnode returned
void RETURN

From EMBOSS 4.0.0


Function embGrpExit

Cleanup program group internals on exit

Prototype

void embGrpExit (
      void
);

TypeNameRead/WriteDescription
void RETURN

From EMBOSS 4.0.0