EmbPField embDbiFieldNew (
      void
);
| Type | Name | Read/Write | Description | 
|---|---|---|---|
| EmbPField | RETURN | Field token structure. | 
From EMBOSS 2.4.0
void embDbiFieldDel (
      EmbPField* pthys
);
| Type | Name | Read/Write | Description | 
|---|---|---|---|
| EmbPField* | pthys | Delete | Field token structure. | 
| void | RETURN | 
From EMBOSS 4.1.0
void embDbiFieldDelMap (
      void** pthys,
      void* cl
);
| Type | Name | Read/Write | Description | 
|---|---|---|---|
| void** | pthys | Delete | Field token structure. | 
| void* | cl | Modify | Unused | 
| void | RETURN | 
From EMBOSS 4.1.0
ajint embDbiCmpId (
      const void* a,
      const void* b
);
| Type | Name | Read/Write | Description | 
|---|---|---|---|
| const void* | a | Input | First id (EmbPEntry*) | 
| const void* | b | Input | Second id (EmbPEntry*) | 
| ajint | RETURN | Comparison value, -1, 0 or +1. | 
From EMBOSS 1.13.0
ajint embDbiCmpFieldId (
      const void* a,
      const void* b
);
| Type | Name | Read/Write | Description | 
|---|---|---|---|
| const void* | a | Input | First id (EmbPField*) | 
| const void* | b | Input | Second id (EmbPField*) | 
| ajint | RETURN | Comparison value, -1, 0 or +1. | 
From EMBOSS 2.4.0
ajint embDbiCmpFieldField (
      const void* a,
      const void* b
);
| Type | Name | Read/Write | Description | 
|---|---|---|---|
| const void* | a | Input | First id (EmbPField*) | 
| const void* | b | Input | Second id (EmbPField*) | 
| ajint | RETURN | Comparison value, -1, 0 or +1. | 
From EMBOSS 2.4.0
EmbPEntry embDbiEntryNew (
      ajuint nfields
);
| Type | Name | Read/Write | Description | 
|---|---|---|---|
| ajuint | nfields | Input | Number of data fields to be included | 
| EmbPEntry | RETURN | Entry structure. | 
From EMBOSS 1.13.0
void embDbiEntryDel (
      EmbPEntry* Pentry
);
| Type | Name | Read/Write | Description | 
|---|---|---|---|
| EmbPEntry* | Pentry | Delete | Entry structure | 
| void | RETURN | 
From EMBOSS 4.0.0
void embDbiEntryDelMap (
      void** pthys,
      void* cl
);
| Type | Name | Read/Write | Description | 
|---|---|---|---|
| void** | pthys | Delete | Field token structure. | 
| void* | cl | Modify | Unused | 
| void | RETURN | 
From EMBOSS 4.1.0
AjPList embDbiFileList (
      const AjPStr dir,
      const AjPStr wildfile,
      AjBool trim
);
| Type | Name | Read/Write | Description | 
|---|---|---|---|
| const AjPStr | dir | Input | Directory | 
| const AjPStr | wildfile | Input | Wildcard file name | 
| AjBool | trim | Input | Expand to search, trim results | 
| AjPList | RETURN | New list of all files with full paths | 
From EMBOSS 1.13.0
AjPList embDbiFileListExc (
      const AjPStr dir,
      const AjPStr wildfile,
      const AjPStr exclude
);
| Type | Name | Read/Write | Description | 
|---|---|---|---|
| const AjPStr | dir | Input | Directory | 
| const AjPStr | wildfile | Input | Wildcard file list | 
| const AjPStr | exclude | Input | Wildcard file list (NULL if none to exclude) | 
| AjPList | RETURN | New list of all files with full paths | 
From EMBOSS 1.13.2
AjBool embDbiFlatOpenlib (
      const AjPStr lname,
      AjPFile* libr
);
| Type | Name | Read/Write | Description | 
|---|---|---|---|
| const AjPStr | lname | Input | Source file basename | 
| AjPFile* | libr | Modify | Database file | 
| AjBool | RETURN | ajTrue on success | 
From EMBOSS 2.3.0
void embDbiRmFile (
      const AjPStr dbname,
      const char* ext,
      ajuint nfiles,
      AjBool cleanup
);
| Type | Name | Read/Write | Description | 
|---|---|---|---|
| const AjPStr | dbname | Input | Database name | 
| const char* | ext | Input | Base file extension | 
| ajuint | nfiles | Input | Number of files, or zero for unnumbered. | 
| AjBool | cleanup | Input | If ajTrue, clean up temporary files after | 
| void | RETURN | 
From EMBOSS 1.13.0
void embDbiRmFileI (
      const AjPStr dbname,
      const char* ext,
      ajuint ifile,
      AjBool cleanup
);
| Type | Name | Read/Write | Description | 
|---|---|---|---|
| const AjPStr | dbname | Input | Database name | 
| const char* | ext | Input | Base file extension | 
| ajuint | ifile | Input | File number. | 
| AjBool | cleanup | Input | If ajTrue, clean up temporary files after | 
| void | RETURN | 
From EMBOSS 1.13.0
void embDbiRmEntryFile (
      const AjPStr dbname,
      AjBool cleanup
);
| Type | Name | Read/Write | Description | 
|---|---|---|---|
| const AjPStr | dbname | Input | Database name | 
| AjBool | cleanup | Input | If ajTrue, clean up temporary files after | 
| void | RETURN | 
From EMBOSS 2.4.0
void embDbiSortFile (
      const AjPStr dbname,
      const char* ext1,
      const char* ext2,
      ajuint nfiles,
      AjBool cleanup,
      const AjPStr sortopt
);
| Type | Name | Read/Write | Description | 
|---|---|---|---|
| const AjPStr | dbname | Input | Database name | 
| const char* | ext1 | Input | Input file extension | 
| const char* | ext2 | Input | Output file extension | 
| ajuint | nfiles | Input | Number of files to sort (zero if unnumbered) | 
| AjBool | cleanup | Input | If ajTrue, clean up temporary files after | 
| const AjPStr | sortopt | Input | Extra options for the system sort | 
| void | RETURN | 
From EMBOSS 1.13.0
void embDbiHeaderSize (
      AjPFile file,
      ajuint filesize,
      ajuint recordcnt
);
| Type | Name | Read/Write | Description | 
|---|---|---|---|
| AjPFile | file | Modify | Output file | 
| ajuint | filesize | Input | File size (if known, can be rewritten) | 
| ajuint | recordcnt | Input | Number of records | 
| void | RETURN | 
From EMBOSS 2.4.0
void embDbiHeader (
      AjPFile file,
      ajuint filesize,
      ajuint recordcnt,
      short recordlen,
      const AjPStr dbname,
      const AjPStr release,
      const char[4] date
);
| Type | Name | Read/Write | Description | 
|---|---|---|---|
| AjPFile | file | Modify | Output file | 
| ajuint | filesize | Input | File size (if known, can be rewritten) | 
| ajuint | recordcnt | Input | Number of records | 
| short | recordlen | Input | Record length (bytes) | 
| const AjPStr | dbname | Input | Database name (up to 20 characters used) | 
| const AjPStr | release | Input | Release as a string (up to 10 characters used) | 
| const char[4] | date | Input | Date dd,mm,yy,00 | 
| void | RETURN | 
From EMBOSS 2.4.0
AjPFile embDbiFileSingle (
      const AjPStr dbname,
      const char* extension,
      ajuint num
);
| Type | Name | Read/Write | Description | 
|---|---|---|---|
| const AjPStr | dbname | Input | Database name | 
| const char* | extension | Input | Filename extension. | 
| ajuint | num | Input | Number for this file (start at 1) | 
| AjPFile | RETURN | Opened output file | 
From EMBOSS 2.4.0
AjPFile embDbiFileIn (
      const AjPStr dbname,
      const char* extension
);
| Type | Name | Read/Write | Description | 
|---|---|---|---|
| const AjPStr | dbname | Input | Database name | 
| const char* | extension | Input | Filename extension. | 
| AjPFile | RETURN | Opened output file | 
From EMBOSS 2.4.0
AjPFile embDbiFileOut (
      const AjPStr dbname,
      const char* extension
);
| Type | Name | Read/Write | Description | 
|---|---|---|---|
| const AjPStr | dbname | Input | Database name | 
| const char* | extension | Input | Filename extension. | 
| AjPFile | RETURN | Opened output file | 
From EMBOSS 2.4.0
AjPFile embDbiFileIndex (
      const AjPStr indexdir,
      const AjPStr field,
      const char* extension
);
| Type | Name | Read/Write | Description | 
|---|---|---|---|
| const AjPStr | indexdir | Input | Index directory | 
| const AjPStr | field | Input | Field name | 
| const char* | extension | Input | Filename extension. | 
| AjPFile | RETURN | Opened output file | 
From EMBOSS 2.4.0
void embDbiWriteDivision (
      const AjPStr indexdir,
      const AjPStr dbname,
      const AjPStr release,
      const char[4] date,
      ajuint maxfilelen,
      ajuint nfiles,
      AjPStr const* divfiles,
      AjPStr const* seqfiles
);
| Type | Name | Read/Write | Description | 
|---|---|---|---|
| const AjPStr | indexdir | Input | Index directory | 
| const AjPStr | dbname | Input | Database name | 
| const AjPStr | release | Input | Release number as a string | 
| const char[4] | date | Input | Date | 
| ajuint | maxfilelen | Input | Max file name length | 
| ajuint | nfiles | Input | Number of files indexes | 
| AjPStr const* | divfiles | Input | Division filenames | 
| AjPStr const* | seqfiles | Input | Sequence filenames (or NULL if none) | 
| void | RETURN | 
From EMBOSS 2.4.0
void embDbiWriteDivisionRecord (
      AjPFile file,
      ajuint maxnamlen,
      short recnum,
      const AjPStr datfile,
      const AjPStr seqfile
);
| Type | Name | Read/Write | Description | 
|---|---|---|---|
| AjPFile | file | Modify | Index file | 
| ajuint | maxnamlen | Input | Maximum file name length | 
| short | recnum | Input | Record number | 
| const AjPStr | datfile | Input | Data file name | 
| const AjPStr | seqfile | Input | Sequence file name (or NULL if none) | 
| void | RETURN | 
From EMBOSS 2.4.0
void embDbiWriteEntryRecord (
      AjPFile file,
      ajuint maxidlen,
      const AjPStr id,
      ajuint rpos,
      ajuint spos,
      ajushort filenum
);
| Type | Name | Read/Write | Description | 
|---|---|---|---|
| AjPFile | file | Modify | hit file | 
| ajuint | maxidlen | Input | Maximum length for an id string | 
| const AjPStr | id | Input | The id string for this entry | 
| ajuint | rpos | Input | Data file offset | 
| ajuint | spos | Input | sequence file offset | 
| ajushort | filenum | Input | file number in division file | 
| void | RETURN | 
From EMBOSS 2.4.0
void embDbiWriteHit (
      AjPFile file,
      ajuint idnum
);
| Type | Name | Read/Write | Description | 
|---|---|---|---|
| AjPFile | file | Modify | hit file | 
| ajuint | idnum | Input | Entry number (1 for the first) in the entryname file | 
| void | RETURN | 
From EMBOSS 2.4.0
void embDbiWriteTrg (
      AjPFile file,
      ajuint maxfieldlen,
      ajuint idnum,
      ajuint idcnt,
      const AjPStr hitstr
);
| Type | Name | Read/Write | Description | 
|---|---|---|---|
| AjPFile | file | Modify | hit file | 
| ajuint | maxfieldlen | Input | Maximum field token length | 
| ajuint | idnum | Input | First record number (1 for the first) in the field hit index file | 
| ajuint | idcnt | Input | Number of entries for this field value in the field hit index file | 
| const AjPStr | hitstr | Input | Field token string | 
| void | RETURN | 
From EMBOSS 2.4.0
AjPFile embDbiSortOpen (
      AjPFile* alistfile,
      ajuint ifile,
      const AjPStr dbname,
      AjPStr const* fields,
      ajuint nfields
);
| Type | Name | Read/Write | Description | 
|---|---|---|---|
| AjPFile* | alistfile | Output | Sort files for each field. | 
| ajuint | ifile | Input | Input file number (used for temporary file names) | 
| const AjPStr | dbname | Input | Database name (used for temporary file names) | 
| AjPStr const* | fields | Input | Field names (used for temporary file names) | 
| ajuint | nfields | Input | Number of fields | 
| AjPFile | RETURN | Sort file for entries | 
From EMBOSS 2.4.0
void embDbiSortClose (
      AjPFile* elistfile,
      AjPFile* alistfile,
      ajuint nfields
);
| Type | Name | Read/Write | Description | 
|---|---|---|---|
| AjPFile* | elistfile | Modify | Sort file for entries | 
| AjPFile* | alistfile | Modify | Sort files for each field. | 
| ajuint | nfields | Input | Number of fields | 
| void | RETURN | 
From EMBOSS 2.4.0
void embDbiMemEntry (
      AjPList idlist,
      AjPList* fieldList,
      ajuint nfields,
      EmbPEntry entry,
      ajuint ifile
);
| Type | Name | Read/Write | Description | 
|---|---|---|---|
| AjPList | idlist | Modify | List of entry IDs | 
| AjPList* | fieldList | Modify | List of field tokens for each field | 
| ajuint | nfields | Input | Number of fields | 
| EmbPEntry | entry | Modify | Current entry | 
| ajuint | ifile | Input | Current input file number | 
| void | RETURN | 
From EMBOSS 2.4.0
ajuint embDbiSortWriteEntry (
      AjPFile entFile,
      ajuint maxidlen,
      const AjPStr dbname,
      ajuint nfiles,
      AjBool cleanup,
      const AjPStr sortopt
);
| Type | Name | Read/Write | Description | 
|---|---|---|---|
| AjPFile | entFile | Modify | Entry file | 
| ajuint | maxidlen | Input | Maximum id length | 
| const AjPStr | dbname | Input | Database name (used in temp file names) | 
| ajuint | nfiles | Input | Number of files | 
| AjBool | cleanup | Input | Cleanup temp files if true | 
| const AjPStr | sortopt | Input | Sort commandline options | 
| ajuint | RETURN | Number of entries | 
From EMBOSS 2.4.0
ajuint embDbiMemWriteEntry (
      AjPFile entFile,
      ajuint maxidlen,
      const AjPList idlist,
      void*** ids
);
| Type | Name | Read/Write | Description | 
|---|---|---|---|
| AjPFile | entFile | Modify | entryname index file | 
| ajuint | maxidlen | Input | Maximum entry id length | 
| const AjPList | idlist | Input | List of entry IDs to be written | 
| void*** | ids | Output | AjPStr* array of IDs from list | 
| ajuint | RETURN | Number of entries written (excluding duplicates) | 
From EMBOSS 2.4.0
ajuint embDbiSortWriteFields (
      const AjPStr dbname,
      const AjPStr release,
      const char[4] date,
      const AjPStr indexdir,
      const AjPStr fieldname,
      ajuint maxFieldLen,
      ajuint nfiles,
      ajuint nentries,
      AjBool cleanup,
      const AjPStr sortopt
);
| Type | Name | Read/Write | Description | 
|---|---|---|---|
| const AjPStr | dbname | Input | Database name (used for temp file names) | 
| const AjPStr | release | Input | Release number as a string | 
| const char[4] | date | Input | Date | 
| const AjPStr | indexdir | Input | Index directory | 
| const AjPStr | fieldname | Input | Field name (used for temp file names) | 
| ajuint | maxFieldLen | Input | Maximum field token length | 
| ajuint | nfiles | Input | Number of data files | 
| ajuint | nentries | Input | Number of entries | 
| AjBool | cleanup | Input | Cleanup temp files if true | 
| const AjPStr | sortopt | Input | Sort command line options | 
| ajuint | RETURN | Number of unique field targets written | 
From EMBOSS 2.4.0
ajuint embDbiMemWriteFields (
      const AjPStr dbname,
      const AjPStr release,
      const char[4] date,
      const AjPStr indexdir,
      const AjPStr fieldname,
      ajuint maxFieldLen,
      const AjPList fieldList,
      void** ids
);
| Type | Name | Read/Write | Description | 
|---|---|---|---|
| const AjPStr | dbname | Input | Database name (used for temp file names) | 
| const AjPStr | release | Input | Release number as a string | 
| const char[4] | date | Input | Date | 
| const AjPStr | indexdir | Input | Index directory | 
| const AjPStr | fieldname | Input | Field name (used for file names) | 
| ajuint | maxFieldLen | Input | Maximum field token length | 
| const AjPList | fieldList | Input | List of field tokens to be written | 
| void** | ids | Input | AjPStr* array offield token s from list | 
| ajuint | RETURN | Number of unique field targets written | 
From EMBOSS 2.4.0
void embDbiDateSet (
      const AjPStr datestr,
      char[4] date
);
| Type | Name | Read/Write | Description | 
|---|---|---|---|
| const AjPStr | datestr | Input | Date as a string | 
| char[4] | date | Output | Data char (1 byte int) array | 
| void | RETURN | 
From EMBOSS 2.4.0
void embDbiMaxlen (
      AjPStr* token,
      ajint* maxlen
);
| Type | Name | Read/Write | Description | 
|---|---|---|---|
| AjPStr* | token | Modify | Token string | 
| ajint* | maxlen | Modify | Maximum string length | 
| void | RETURN | 
From EMBOSS 2.4.0
void embDbiLogHeader (
      AjPFile logfile,
      const AjPStr dbname,
      const AjPStr release,
      const AjPStr datestr,
      const AjPStr indexdir,
      ajuint maxindex
);
| Type | Name | Read/Write | Description | 
|---|---|---|---|
| AjPFile | logfile | Modify | Log file | 
| const AjPStr | dbname | Input | Database name | 
| const AjPStr | release | Input | Release number, name or code | 
| const AjPStr | datestr | Input | Indexing date as a string dd/mm/yy | 
| const AjPStr | indexdir | Input | Index directory relative path | 
| ajuint | maxindex | Input | Maximum index token length (usually zero) | 
| void | RETURN | 
From EMBOSS 4.0.0
void embDbiLogFields (
      AjPFile logfile,
      AjPStr const* fields,
      ajuint nfields
);
| Type | Name | Read/Write | Description | 
|---|---|---|---|
| AjPFile | logfile | Modify | Log file | 
| AjPStr const* | fields | Input | Field names | 
| ajuint | nfields | Input | Number of fields | 
| void | RETURN | 
From EMBOSS 4.0.0
void embDbiLogSource (
      AjPFile logfile,
      const AjPStr directory,
      const AjPStr filename,
      const AjPStr exclude,
      AjPStr const* inputFiles,
      ajuint nfiles
);
| Type | Name | Read/Write | Description | 
|---|---|---|---|
| AjPFile | logfile | Modify | Log file | 
| const AjPStr | directory | Input | Data directory relative path | 
| const AjPStr | filename | Input | Selected filenames wildcard | 
| const AjPStr | exclude | Input | Excluded filenames wildcard | 
| AjPStr const* | inputFiles | Input | File names | 
| ajuint | nfiles | Input | Number of files | 
| void | RETURN | 
From EMBOSS 4.0.0
void embDbiLogCmdline (
      AjPFile logfile
);
| Type | Name | Read/Write | Description | 
|---|---|---|---|
| AjPFile | logfile | Modify | Log file | 
| void | RETURN | 
From EMBOSS 4.0.0
void embDbiLogFile (
      AjPFile logfile,
      const AjPStr curfilename,
      ajuint idCountFile,
      AjPStr const* fields,
      const ajuint* countField,
      ajuint nfields
);
| Type | Name | Read/Write | Description | 
|---|---|---|---|
| AjPFile | logfile | Modify | Log file | 
| const AjPStr | curfilename | Input | Source filename | 
| ajuint | idCountFile | Input | Number of IDs in file | 
| AjPStr const* | fields | Input | Field names | 
| const ajuint* | countField | Input | Number of field tokens in this file | 
| ajuint | nfields | Input | Number of fields | 
| void | RETURN | 
From EMBOSS 4.0.0
void embDbiLogFinal (
      AjPFile logfile,
      ajuint maxindex,
      const ajint* maxFieldLen,
      AjPStr const* fields,
      const ajuint* fieldTot,
      ajuint nfields,
      ajuint nfiles,
      ajuint idDone,
      ajuint idCount
);
| Type | Name | Read/Write | Description | 
|---|---|---|---|
| AjPFile | logfile | Modify | Log file | 
| ajuint | maxindex | Input | User defined maximum index token length (usually zero) | 
| const ajint* | maxFieldLen | Input | Maximum index token length for each field. Negative values were upper limits. Positive values are the maximum in the data | 
| AjPStr const* | fields | Input | Field names | 
| const ajuint* | fieldTot | Input | Number of unique field tokens | 
| ajuint | nfields | Input | Number of fields | 
| ajuint | nfiles | Input | Number of input files | 
| ajuint | idDone | Input | Number of unique IDs indexed | 
| ajuint | idCount | Input | Total number of IDs indexed | 
| void | RETURN | 
From EMBOSS 4.0.0
void embDbiExit (
      void
);
| Type | Name | Read/Write | Description | 
|---|---|---|---|
| void | RETURN | 
From EMBOSS 4.0.0