embshow.c
All constructors return a new show sequence object by pointer.
The target pointer does not need to be initialised to NULL, but it is
good programming practice to do so anyway.
Functions: embShowNew
Creates a new sequence show object.
Synopsis
Prototype
EmbPShow embShowNew (
const AjPSeq seq,
ajint begin,
ajint end,
ajint width,
ajint length,
ajint margin,
AjBool html,
ajint offset
);
Type | Name | Read/Write | Description |
const AjPSeq | seq | Input | Sequence to describe |
ajint | begin | Input | start position in sequence |
ajint | end | Input | end position in sequence |
ajint | width | Input | width of displayed sequence on a line |
ajint | length | Input | length of a page in lines (0=no length) |
ajint | margin | Input | margin for numbers etc. |
AjBool | html | Input | format output for HTML |
ajint | offset | Input | number to start display of position numbering at |
EmbPShow | | RETURN | New sequence show object. |
Input
seq: | (Input) | Sequence to describe |
begin: | (Input) | start position in sequence |
end: | (Input) | end position in sequence |
width: | (Input) | width of displayed sequence on a line |
length: | (Input) | length of a page in lines (0=no length) |
margin: | (Input) | margin for numbers etc. |
html: | (Input) | format output for HTML |
offset: | (Input) | number to start display of position numbering at |
Returns
EmbPShow: | New sequence show object. |
Description
Creates a new sequence show object.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 6.4.0
Destruction destroys all internal data structures and frees the
memory allocated for the show sequence object.
Functions: embShowDel
Deletes a show sequence object.
Synopsis
Prototype
void embShowDel (
EmbPShow* pthis
);
Type | Name | Read/Write | Description |
EmbPShow* | pthis | Delete | Show sequence object |
void | | RETURN | |
Output
pthis: | (Delete) | Show sequence object |
Returns
Description
Deletes a show sequence object.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 6.4.0
These functions add to the show sequence object provided as the
first argument.
Functions: embShowAddSeq embShowAddBlank embShowAddTicks embShowAddTicknum embShowAddComp embShowAddTran embShowAddRE embShowAddFT embShowAddNote
Adds the sequence to be displayed to the list of things to show
This must be done before the final printing is done as without a sequence
to hang all the other features and things on, there can be no output to
show.
Synopsis
Prototype
void embShowAddSeq (
EmbPShow thys,
AjBool number,
AjBool threeletter,
const AjPRange upperrange,
const AjPRange colour
);
Type | Name | Read/Write | Description |
EmbPShow | thys | Modify | Show sequence object |
AjBool | number | Input | Number the sequence |
AjBool | threeletter | Input | Use three letter protein code |
const AjPRange | upperrange | Input | Range of sequence to uppercase |
const AjPRange | colour | Input | Range of sequence to colour in HTML |
void | | RETURN | |
Input
number: | (Input) | Number the sequence |
threeletter: | (Input) | Use three letter protein code |
upperrange: | (Input) | Range of sequence to uppercase |
colour: | (Input) | Range of sequence to colour in HTML |
Input & Output
thys: | (Modify) | Show sequence object |
Returns
Description
Adds the sequence to be displayed to the list of things to show
This must be done before the final printing is done as without a sequence
to hang all the other features and things on, there can be no output to
show.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 6.4.0
Adds a blank line to the list of things to show.
Synopsis
Prototype
void embShowAddBlank (
EmbPShow thys
);
Type | Name | Read/Write | Description |
EmbPShow | thys | Modify | Show sequence object |
void | | RETURN | |
Input & Output
thys: | (Modify) | Show sequence object |
Returns
Description
Adds a blank line to the list of things to show.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 6.4.0
Adds a ticks line to the list of things to show.
Synopsis
Prototype
void embShowAddTicks (
EmbPShow thys
);
Type | Name | Read/Write | Description |
EmbPShow | thys | Modify | Show sequence object |
void | | RETURN | |
Input & Output
thys: | (Modify) | Show sequence object |
Returns
Description
Adds a ticks line to the list of things to show.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 6.4.0
Adds a ticks number line to the list of things to show.
Synopsis
Prototype
void embShowAddTicknum (
EmbPShow thys
);
Type | Name | Read/Write | Description |
EmbPShow | thys | Modify | Show sequence object |
void | | RETURN | |
Input & Output
thys: | (Modify) | Show sequence object |
Returns
Description
Adds a ticks number line to the list of things to show.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 6.4.0
Adds the sequence complement to be displayed to the list of things to show
Synopsis
Prototype
void embShowAddComp (
EmbPShow thys,
AjBool number
);
Type | Name | Read/Write | Description |
EmbPShow | thys | Modify | Show sequence object |
AjBool | number | Input | ajTrue = number the complement |
void | | RETURN | |
Input
number: | (Input) | ajTrue = number the complement |
Input & Output
thys: | (Modify) | Show sequence object |
Returns
Description
Adds the sequence complement to be displayed to the list of things to show
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 6.4.0
Adds the translation to be displayed to the list of things to show
Synopsis
Prototype
void embShowAddTran (
EmbPShow thys,
const AjPTrn trnTable,
ajint frame,
AjBool threeletter,
AjBool number,
const AjPRange regions,
ajint orfminsize,
AjBool lcinterorf,
AjBool firstorf,
AjBool lastorf,
AjBool showframe
);
Type | Name | Read/Write | Description |
EmbPShow | thys | Modify | Show sequence object |
const AjPTrn | trnTable | Input | Translation table |
ajint | frame | Input | Reading frame to translate |
AjBool | threeletter | Input | ajTrue for 3 letter code |
AjBool | number | Input | ajTrue for numbering |
const AjPRange | regions | Input | Sequence range(s) |
ajint | orfminsize | Input | Minimum length of ORF to be shown |
AjBool | lcinterorf | Input | ajTrue to put inter-orf regions in lowercase |
AjBool | firstorf | Input | ajTrue beginning of the seq is a possible ORF |
AjBool | lastorf | Input | ajTrue end of the seq is a possible ORF |
AjBool | showframe | Input | ajTrue write the frame number |
void | | RETURN | |
Input
trnTable: | (Input) | Translation table |
frame: | (Input) | Reading frame to translate |
threeletter: | (Input) | ajTrue for 3 letter code |
number: | (Input) | ajTrue for numbering |
regions: | (Input) | Sequence range(s) |
orfminsize: | (Input) | Minimum length of ORF to be shown |
lcinterorf: | (Input) | ajTrue to put inter-orf regions in lowercase |
firstorf: | (Input) | ajTrue beginning of the seq is a possible ORF |
lastorf: | (Input) | ajTrue end of the seq is a possible ORF |
showframe: | (Input) | ajTrue write the frame number |
Input & Output
thys: | (Modify) | Show sequence object |
Returns
Description
Adds the translation to be displayed to the list of things to show
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 6.4.0
Adds the Restriction Enzymes to be displayed to the list of things to show
Synopsis
Prototype
void embShowAddRE (
EmbPShow thys,
ajint sense,
const AjPList restrictlist,
AjBool plasmid,
AjBool flat
);
Type | Name | Read/Write | Description |
EmbPShow | thys | Modify | Show sequence object |
ajint | sense | Input | sense to translate (+1 or -1) |
const AjPList | restrictlist | Input | restriction enzyme cut site list |
AjBool | plasmid | Input | Circular (plasmid) sequence |
AjBool | flat | Input | show in flat format with recognition sites |
void | | RETURN | |
Input
sense: | (Input) | sense to translate (+1 or -1) |
restrictlist: | (Input) | restriction enzyme cut site list |
plasmid: | (Input) | Circular (plasmid) sequence |
flat: | (Input) | show in flat format with recognition sites |
Input & Output
thys: | (Modify) | Show sequence object |
Returns
Description
Adds the Restriction Enzymes to be displayed to the list of things to show
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 6.4.0
Adds the Features to be displayed to the list of things to show
Synopsis
Prototype
void embShowAddFT (
EmbPShow thys,
const AjPFeattable feat
);
Type | Name | Read/Write | Description |
EmbPShow | thys | Modify | Show sequence object |
const AjPFeattable | feat | Input | features |
void | | RETURN | |
Input
Input & Output
thys: | (Modify) | Show sequence object |
Returns
Description
Adds the Features to be displayed to the list of things to show
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 6.4.0
Adds the annotations to be displayed to the list of things to show
Synopsis
Prototype
void embShowAddNote (
EmbPShow thys,
const AjPRange regions
);
Type | Name | Read/Write | Description |
EmbPShow | thys | Modify | Show sequence object |
const AjPRange | regions | Input | Sequence range(s) |
void | | RETURN | |
Input
regions: | (Input) | Sequence range(s) |
Input & Output
thys: | (Modify) | Show sequence object |
Returns
Description
Adds the annotations to be displayed to the list of things to show
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 6.4.0
These functions use the contents of a Show object but do not modify it.
Functions: embShowPrint
Prints a Show object
Synopsis
Prototype
void embShowPrint (
AjPFile out,
const EmbPShow thys
);
Type | Name | Read/Write | Description |
AjPFile | out | Modify | Output file handle |
const EmbPShow | thys | Input | Show sequence object |
void | | RETURN | |
Input
thys: | (Input) | Show sequence object |
Input & Output
out: | (Modify) | Output file handle |
Returns
Description
Prints a Show object
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 6.4.0
These functions fill out the sequence and features lines according to the
descriptor data.
Functions: embShowUpperRange embShowColourRange
Uppercase a string from a sequence with a range
I.e ranges of a sequence are to be uppercased.
We have a small region of the original sequence in a string.
We want to uppercase any bits of the string that are in the ranges.
Synopsis
Prototype
void embShowUpperRange (
AjPStr* line,
const AjPRange upperrange,
ajuint pos
);
Type | Name | Read/Write | Description |
AjPStr* | line | Modify | line to uppercase if it is in the ranges |
const AjPRange | upperrange | Input | range of original sequence
to uppercase |
ajuint | pos | Input | position in sequence that line starts at |
void | | RETURN | |
Input
upperrange: | (Input) | range of original sequence
to uppercase |
pos: | (Input) | position in sequence that line starts at |
Input & Output
line: | (Modify) | line to uppercase if it is in the ranges |
Returns
Description
Uppercase a string from a sequence with a range
I.e ranges of a sequence are to be uppercased.
We have a small region of the original sequence in a string.
We want to uppercase any bits of the string that are in the ranges.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 6.4.0
colour a string from a sequence with a range
I.e ranges of a sequence are to be coloured in HTML.
We have a small region of the original sequence in a string.
We want to colour any bits of the string that are in the ranges.
Synopsis
Prototype
void embShowColourRange (
AjPStr* line,
const AjPRange colour,
ajuint pos
);
Type | Name | Read/Write | Description |
AjPStr* | line | Modify | line to colour if it is in the ranges |
const AjPRange | colour | Input | range of original sequence to colour |
ajuint | pos | Input | position in sequence that line starts at |
void | | RETURN | |
Input
colour: | (Input) | range of original sequence to colour |
pos: | (Input) | position in sequence that line starts at |
Input & Output
line: | (Modify) | line to colour if it is in the ranges |
Returns
Description
colour a string from a sequence with a range
I.e ranges of a sequence are to be coloured in HTML.
We have a small region of the original sequence in a string.
We want to colour any bits of the string that are in the ranges.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 6.4.0