Skip to main content Accessibility help
×
Hostname: page-component-848d4c4894-4rdrl Total loading time: 0 Render date: 2024-06-21T11:58:53.932Z Has data issue: false hasContentIssue false

4 - ACD file development

Published online by Cambridge University Press:  05 December 2011

Jon C. Ison
Affiliation:
European Bioinformatics Institute, Hinxton
Peter M. Rice
Affiliation:
European Bioinformatics Institute, Hinxton
Alan J. Bleasby
Affiliation:
European Bioinformatics Institute, Hinxton
Get access

Summary

Introduction to ACD files

Every EMBOSS and EMBASSY program has an ACD (AJAX command definition) file which describes the application, its options (parameters) and command line interface. The ACD file controls the behaviour of the application at the command line, particularly, all the user input operations. It includes:

  • An application definition describing the application itself, for instance its name, documentation text and functional grouping.

  • Attributes defining exactly what options are permitted or required under different conditions, how option values may be specified on the command line and how the user is prompted for values.

  • A data definition for every application option. These describe the program parameters, i.e. the data the program can accept or requires to run. This includes input and output files and all other parameters.

  • A datatype for each application option and attributes describing the permissible type or value in detail, for example default values and whether data has to be within limits. These are used for user input validation to ensure the application parameters are set correctly.

  • Dependencies between application options, such as when a value is only required if another is specified, or the permitted type of value depends on the value or the presence of another. If for example the input sequence for an alignment program is DNA it should not accept a protein comparison matrix.

When an application is run, the ACD file is read and the command line processed automatically by an ACD file parser and command line processor that is internal to EMBOSS. Together these ensure that the required information is available at startup. All of the required option values are prompted for as necessary before the application starts. Input values that are incorrect or out of range are reprompted for automatically. The input values are read and held in memory, files are opened as required and so forth, so that all the required data are available when the application proper runs. An EMBOSS application cannot ask the user for more information after several hours of processing!

Type
Chapter
Information
EMBOSS Developer's Guide
Bioinformatics Programming
, pp. 81 - 144
Publisher: Cambridge University Press
Print publication year: 2011

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Save book to Kindle

To save this book to your Kindle, first ensure coreplatform@cambridge.org is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.

Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.

Find out more about the Kindle Personal Document Service.

Available formats
×

Save book to Dropbox

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.

Available formats
×

Save book to Google Drive

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.

Available formats
×