ajreport.c
Destructor for report objects
Synopsis
Prototype
void ajReportDel (
AjPReport* pthys
);
Type | Name | Read/Write | Description |
AjPReport* | pthys | Delete | Report object reference |
void | | RETURN | |
Output
pthys: | (Delete) | Report object reference |
Returns
Description
Destructor for report objects
See Also
See other functions in this section
Availability
In release 6.4.0
Opens a new report file
Synopsis
Prototype
AjBool ajReportOpen (
AjPReport thys,
const AjPStr name
);
Type | Name | Read/Write | Description |
AjPReport | thys | Modify | Report object |
const AjPStr | name | Input | File name |
AjBool | | RETURN | ajTrue on success |
Input
Input & Output
thys: | (Modify) | Report object |
Returns
Description
Opens a new report file
See Also
See other functions in this section
Availability
In release 6.4.0
Sets the default format for a feature report
Synopsis
Prototype
AjBool ajReportFormatDefault (
AjPStr* pformat
);
Type | Name | Read/Write | Description |
AjPStr* | pformat | Output | Default format returned |
AjBool | | RETURN | ajTrue is format was returned |
Output
pformat: | (Output) | Default format returned |
Returns
AjBool: | ajTrue is format was returned |
Description
Sets the default format for a feature report
See Also
See other functions in this section
Availability
In release 6.4.0
Looks for the specified report format in the internal definitions and
returns the index.
Synopsis
Prototype
AjBool ajReportFindFormat (
const AjPStr format,
ajint* iformat
);
Type | Name | Read/Write | Description |
const AjPStr | format | Input | Format required. |
ajint* | iformat | Output | Index |
AjBool | | RETURN | ajTrue on success. |
Input
format: | (Input) | Format required. |
Output
Returns
AjBool: | ajTrue on success. |
Description
Looks for the specified report format in the internal definitions and
returns the index.
See Also
See other functions in this section
Availability
In release 6.4.0
Sets the tag list for a report
Synopsis
Prototype
AjBool ajReportSetTagsS (
AjPReport thys,
const AjPStr taglist
);
Type | Name | Read/Write | Description |
AjPReport | thys | Modify | Report object |
const AjPStr | taglist | Input | Tag names list |
AjBool | | RETURN | ajTrue on success |
Input
taglist: | (Input) | Tag names list |
Input & Output
thys: | (Modify) | Report object |
Returns
Description
Sets the tag list for a report
See Also
See other functions in this section
Availability
In release 6.4.0
Test for a report object.
Checks the format works with the number of tags.
Checks the format works with the type (protein or nucleotide).
Sets the format if not already defined.
Synopsis
Prototype
AjBool ajReportValid (
AjPReport thys
);
Type | Name | Read/Write | Description |
AjPReport | thys | Modify | Report object |
AjBool | | RETURN | ajTrue on success |
Input & Output
thys: | (Modify) | Report object |
Returns
Description
Test for a report object.
Checks the format works with the number of tags.
Checks the format works with the type (protein or nucleotide).
Sets the format if not already defined.
See Also
See other functions in this section
Availability
In release 6.4.0
Constructor for a report object
Synopsis
Prototype
AjPReport ajReportNew (
void
);
Type | Name | Read/Write | Description |
AjPReport | | RETURN | New report object |
Returns
AjPReport: | New report object |
Description
Constructor for a report object
See Also
See other functions in this section
Availability
In release 6.4.0
Writes a feature report
Synopsis
Prototype
AjBool ajReportWrite (
AjPReport thys,
const AjPFeattable ftable,
const AjPSeq seq
);
Type | Name | Read/Write | Description |
AjPReport | thys | Modify | Report object |
const AjPFeattable | ftable | Input | Feature table object |
const AjPSeq | seq | Input | Sequence object |
AjBool | | RETURN | True if data was written
False if maximum output has already been reached. |
Input
ftable: | (Input) | Feature table object |
seq: | (Input) | Sequence object |
Input & Output
thys: | (Modify) | Report object |
Returns
AjBool: | True if data was written
False if maximum output has already been reached. |
Description
Writes a feature report
See Also
See other functions in this section
Availability
In release 6.4.0
Closes a feature report
Synopsis
Prototype
void ajReportClose (
AjPReport thys
);
Type | Name | Read/Write | Description |
AjPReport | thys | Modify | Report object |
void | | RETURN | |
Input & Output
thys: | (Modify) | Report object |
Returns
Description
Closes a feature report
See Also
See other functions in this section
Availability
In release 6.4.0
Writes a feature report header and updates internal counters.
Synopsis
Prototype
void ajReportWriteHeader (
AjPReport thys,
const AjPFeattable ftable,
const AjPSeq seq
);
Type | Name | Read/Write | Description |
AjPReport | thys | Modify | Report object |
const AjPFeattable | ftable | Input | Feature table object |
const AjPSeq | seq | Input | Sequence object |
void | | RETURN | |
Input
ftable: | (Input) | Feature table object |
seq: | (Input) | Sequence object |
Input & Output
thys: | (Modify) | Report object |
Returns
Description
Writes a feature report header and updates internal counters.
See Also
See other functions in this section
Availability
In release 6.4.0
Writes (and clears) a feature report tail
Synopsis
Prototype
void ajReportWriteTail (
AjPReport thys,
const AjPFeattable ftable,
const AjPSeq seq
);
Type | Name | Read/Write | Description |
AjPReport | thys | Modify | Report object |
const AjPFeattable | ftable | Input | Feature table object |
const AjPSeq | seq | Input | Sequence object |
void | | RETURN | |
Input
ftable: | (Input) | Feature table object |
seq: | (Input) | Sequence object |
Input & Output
thys: | (Modify) | Report object |
Returns
Description
Writes (and clears) a feature report tail
See Also
See other functions in this section
Availability
In release 6.4.0
Defines a feature report header
Synopsis
Prototype
void ajReportSetHeaderS (
AjPReport thys,
const AjPStr header
);
Type | Name | Read/Write | Description |
AjPReport | thys | Modify | Report object |
const AjPStr | header | Input | Report header with embedded newlines |
void | | RETURN | |
Input
header: | (Input) | Report header with embedded newlines |
Input & Output
thys: | (Modify) | Report object |
Returns
Description
Defines a feature report header
See Also
See other functions in this section
Availability
In release 6.4.0
Defines a feature report header
Synopsis
Prototype
void ajReportSetHeaderC (
AjPReport thys,
const char* header
);
Type | Name | Read/Write | Description |
AjPReport | thys | Modify | Report object |
const char* | header | Input | Report header with embedded newlines |
void | | RETURN | |
Input
header: | (Input) | Report header with embedded newlines |
Input & Output
thys: | (Modify) | Report object |
Returns
Description
Defines a feature report header
See Also
See other functions in this section
Availability
In release 6.4.0
Appends to a feature report header
Synopsis
Prototype
void ajReportAppendHeaderC (
AjPReport thys,
const char* header
);
Type | Name | Read/Write | Description |
AjPReport | thys | Modify | Report object |
const char* | header | Input | Report header with embedded newlines |
void | | RETURN | |
Input
header: | (Input) | Report header with embedded newlines |
Input & Output
thys: | (Modify) | Report object |
Returns
Description
Appends to a feature report header
See Also
See other functions in this section
Availability
In release 6.4.0
Defines a feature report header
Synopsis
Prototype
void ajReportAppendHeaderS (
AjPReport thys,
const AjPStr header
);
Type | Name | Read/Write | Description |
AjPReport | thys | Modify | Report object |
const AjPStr | header | Input | Report header with embedded newlines |
void | | RETURN | |
Input
header: | (Input) | Report header with embedded newlines |
Input & Output
thys: | (Modify) | Report object |
Returns
Description
Defines a feature report header
See Also
See other functions in this section
Availability
In release 6.4.0
Appends to a feature report subheader
Synopsis
Prototype
void ajReportSetSubheaderC (
AjPReport thys,
const char* header
);
Type | Name | Read/Write | Description |
AjPReport | thys | Modify | Report object |
const char* | header | Input | Report header with embedded newlines |
void | | RETURN | |
Input
header: | (Input) | Report header with embedded newlines |
Input & Output
thys: | (Modify) | Report object |
Returns
Description
Appends to a feature report subheader
See Also
See other functions in this section
Availability
In release 6.4.0
Defines a feature report subheader
Synopsis
Prototype
void ajReportSetSubheaderS (
AjPReport thys,
const AjPStr header
);
Type | Name | Read/Write | Description |
AjPReport | thys | Modify | Report object |
const AjPStr | header | Input | Report header with embedded newlines |
void | | RETURN | |
Input
header: | (Input) | Report header with embedded newlines |
Input & Output
thys: | (Modify) | Report object |
Returns
Description
Defines a feature report subheader
See Also
See other functions in this section
Availability
In release 6.4.0
Appends to a feature report subheader
Synopsis
Prototype
void ajReportAppendSubheaderC (
AjPReport thys,
const char* header
);
Type | Name | Read/Write | Description |
AjPReport | thys | Modify | Report object |
const char* | header | Input | Report header with embedded newlines |
void | | RETURN | |
Input
header: | (Input) | Report header with embedded newlines |
Input & Output
thys: | (Modify) | Report object |
Returns
Description
Appends to a feature report subheader
See Also
See other functions in this section
Availability
In release 6.4.0
Defines a feature report subheader
Synopsis
Prototype
void ajReportAppendSubheaderS (
AjPReport thys,
const AjPStr header
);
Type | Name | Read/Write | Description |
AjPReport | thys | Modify | Report object |
const AjPStr | header | Input | Report header with embedded newlines |
void | | RETURN | |
Input
header: | (Input) | Report header with embedded newlines |
Input & Output
thys: | (Modify) | Report object |
Returns
Description
Defines a feature report subheader
See Also
See other functions in this section
Availability
In release 6.4.0
Defines a feature report tail
Synopsis
Prototype
void ajReportSetSeqstats (
AjPReport thys,
const AjPSeqall seqall
);
Type | Name | Read/Write | Description |
AjPReport | thys | Modify | Report object |
const AjPSeqall | seqall | Input | Sequence stream object |
void | | RETURN | |
Input
seqall: | (Input) | Sequence stream object |
Input & Output
thys: | (Modify) | Report object |
Returns
Description
Defines a feature report tail
See Also
See other functions in this section
Availability
In release 6.4.0
Defines a feature report tail
Synopsis
Prototype
void ajReportSetSeqsetstats (
AjPReport thys,
const AjPSeqset seqset
);
Type | Name | Read/Write | Description |
AjPReport | thys | Modify | Report object |
const AjPSeqset | seqset | Input | Sequence set object |
void | | RETURN | |
Input
seqset: | (Input) | Sequence set object |
Input & Output
thys: | (Modify) | Report object |
Returns
Description
Defines a feature report tail
See Also
See other functions in this section
Availability
In release 6.4.0
Defines a feature report tail
Synopsis
Prototype
void ajReportSetStatistics (
AjPReport thys,
ajlong totseqs,
ajlong totlength
);
Type | Name | Read/Write | Description |
AjPReport | thys | Modify | Report object |
ajlong | totseqs | Input | Total number of sequences processed |
ajlong | totlength | Input | Total sequence length processed |
void | | RETURN | |
Input
totseqs: | (Input) | Total number of sequences processed |
totlength: | (Input) | Total sequence length processed |
Input & Output
thys: | (Modify) | Report object |
Returns
Description
Defines a feature report tail
See Also
See other functions in this section
Availability
In release 6.4.0
Defines a feature report tail
Synopsis
Prototype
void ajReportSetTailC (
AjPReport thys,
const char* tail
);
Type | Name | Read/Write | Description |
AjPReport | thys | Modify | Report object |
const char* | tail | Input | Report tail with embedded newlines |
void | | RETURN | |
Input
tail: | (Input) | Report tail with embedded newlines |
Input & Output
thys: | (Modify) | Report object |
Returns
Description
Defines a feature report tail
See Also
See other functions in this section
Availability
In release 6.4.0
Defines a feature report tail
Synopsis
Prototype
void ajReportSetTailS (
AjPReport thys,
const AjPStr tail
);
Type | Name | Read/Write | Description |
AjPReport | thys | Modify | Report object |
const AjPStr | tail | Input | Report tail with embedded newlines |
void | | RETURN | |
Input
tail: | (Input) | Report tail with embedded newlines |
Input & Output
thys: | (Modify) | Report object |
Returns
Description
Defines a feature report tail
See Also
See other functions in this section
Availability
In release 6.4.0
Appends to a feature report tail
Synopsis
Prototype
void ajReportAppendTailC (
AjPReport thys,
const char* tail
);
Type | Name | Read/Write | Description |
AjPReport | thys | Modify | Report object |
const char* | tail | Input | Report tail with embedded newlines |
void | | RETURN | |
Input
tail: | (Input) | Report tail with embedded newlines |
Input & Output
thys: | (Modify) | Report object |
Returns
Description
Appends to a feature report tail
See Also
See other functions in this section
Availability
In release 6.4.0
Appends to a feature report tail
Synopsis
Prototype
void ajReportAppendTailS (
AjPReport thys,
const AjPStr tail
);
Type | Name | Read/Write | Description |
AjPReport | thys | Modify | Report object |
const AjPStr | tail | Input | Report tail with embedded newlines |
void | | RETURN | |
Input
tail: | (Input) | Report tail with embedded newlines |
Input & Output
thys: | (Modify) | Report object |
Returns
Description
Appends to a feature report tail
See Also
See other functions in this section
Availability
In release 6.4.0
Defines a feature report subtail
Synopsis
Prototype
void ajReportSetSubtailC (
AjPReport thys,
const char* tail
);
Type | Name | Read/Write | Description |
AjPReport | thys | Modify | Report object |
const char* | tail | Input | Report tail with embedded newlines |
void | | RETURN | |
Input
tail: | (Input) | Report tail with embedded newlines |
Input & Output
thys: | (Modify) | Report object |
Returns
Description
Defines a feature report subtail
See Also
See other functions in this section
Availability
In release 6.4.0
Defines a feature report subtail
Synopsis
Prototype
void ajReportSetSubtailS (
AjPReport thys,
const AjPStr tail
);
Type | Name | Read/Write | Description |
AjPReport | thys | Modify | Report object |
const AjPStr | tail | Input | Report tail with embedded newlines |
void | | RETURN | |
Input
tail: | (Input) | Report tail with embedded newlines |
Input & Output
thys: | (Modify) | Report object |
Returns
Description
Defines a feature report subtail
See Also
See other functions in this section
Availability
In release 6.4.0
Appends to a feature report subtail
Synopsis
Prototype
void ajReportAppendSubtailC (
AjPReport thys,
const char* tail
);
Type | Name | Read/Write | Description |
AjPReport | thys | Modify | Report object |
const char* | tail | Input | Report tail with embedded newlines |
void | | RETURN | |
Input
tail: | (Input) | Report tail with embedded newlines |
Input & Output
thys: | (Modify) | Report object |
Returns
Description
Appends to a feature report subtail
See Also
See other functions in this section
Availability
In release 6.4.0
Appends to a feature report subtail
Synopsis
Prototype
void ajReportAppendSubtailS (
AjPReport thys,
const AjPStr tail
);
Type | Name | Read/Write | Description |
AjPReport | thys | Modify | Report object |
const AjPStr | tail | Input | Report tail with embedded newlines |
void | | RETURN | |
Input
tail: | (Input) | Report tail with embedded newlines |
Input & Output
thys: | (Modify) | Report object |
Returns
Description
Appends to a feature report subtail
See Also
See other functions in this section
Availability
In release 6.4.0
Sets the report type (if it is not set already)
Synopsis
Prototype
void ajReportSetType (
AjPReport thys,
const AjPFeattable ftable,
const AjPSeq seq
);
Type | Name | Read/Write | Description |
AjPReport | thys | Modify | Report object |
const AjPFeattable | ftable | Input | Feature table object |
const AjPSeq | seq | Input | Sequence object |
void | | RETURN | |
Input
ftable: | (Input) | Feature table object |
seq: | (Input) | Sequence object |
Input & Output
thys: | (Modify) | Report object |
Returns
Description
Sets the report type (if it is not set already)
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the sequence name or USA depending on the setting in the
report object (derived from the ACD and command line -rusa option)
Synopsis
Prototype
const AjPStr ajReportGetSeqnameSeq (
const AjPReport thys,
const AjPSeq seq
);
Type | Name | Read/Write | Description |
const AjPReport | thys | Input | Report object |
const AjPSeq | seq | Input | Sequence object |
const AjPStr | | RETURN | Sequence name for this report |
Input
thys: | (Input) | Report object |
seq: | (Input) | Sequence object |
Returns
const AjPStr: | Sequence name for this report |
Description
Returns the sequence name or USA depending on the setting in the
report object (derived from the ACD and command line -rusa option)
See Also
See other functions in this section
Availability
In release 6.4.0
Adds an additional file name and description to the report.
These will appear in the header as "Additional files"
to let the user know that there are associated output files available.
Synopsis
Prototype
void ajReportAddFileF (
AjPReport thys,
AjPFile file,
const AjPStr type
);
Type | Name | Read/Write | Description |
AjPReport | thys | Modify | Report object |
AjPFile | file | Modify | File |
const AjPStr | type | Input | Type (simple text description) |
void | | RETURN | |
Input
type: | (Input) | Type (simple text description) |
Input & Output
thys: | (Modify) | Report object |
file: | (Modify) | File |
Returns
Description
Adds an additional file name and description to the report.
These will appear in the header as "Additional files"
to let the user know that there are associated output files available.
See Also
See other functions in this section
Availability
In release 6.4.0
Reports the internal data structures
Synopsis
Prototype
void ajReportPrintFormat (
AjPFile outf,
AjBool full
);
Type | Name | Read/Write | Description |
AjPFile | outf | Modify | Output file |
AjBool | full | Input | Full report (usually ajFalse) |
void | | RETURN | |
Input
full: | (Input) | Full report (usually ajFalse) |
Input & Output
Returns
Description
Reports the internal data structures
See Also
See other functions in this section
Availability
In release 6.4.0
Reports the internal data structures
Synopsis
Prototype
void ajReportPrinthtmlFormat (
AjPFile outf
);
Type | Name | Read/Write | Description |
AjPFile | outf | Modify | Output file |
void | | RETURN | |
Input & Output
Returns
Description
Reports the internal data structures
See Also
See other functions in this section
Availability
In release 6.4.0
Reports the report format internals in DocBook format
Synopsis
Prototype
void ajReportPrintbookFormat (
AjPFile outf
);
Type | Name | Read/Write | Description |
AjPFile | outf | Modify | Output file |
void | | RETURN | |
Input & Output
Returns
Description
Reports the report format internals in DocBook format
See Also
See other functions in this section
Availability
In release 6.4.0
Reports the report format internals as wikitext
Synopsis
Prototype
void ajReportPrintwikiFormat (
AjPFile outf
);
Type | Name | Read/Write | Description |
AjPFile | outf | Modify | Output file |
void | | RETURN | |
Input & Output
Returns
Description
Reports the report format internals as wikitext
See Also
See other functions in this section
Availability
In release 6.4.0
Dummy function to catch all unused functions defined in the ajreport
source file.
Synopsis
Prototype
void ajReportDummyFunction (
void
);
Type | Name | Read/Write | Description |
void | | RETURN | |
Returns
Description
Dummy function to catch all unused functions defined in the ajreport
source file.
See Also
See other functions in this section
Availability
In release 6.4.0
Cleans up report processing internal memory
Synopsis
Prototype
void ajReportExit (
void
);
Type | Name | Read/Write | Description |
void | | RETURN | |
Returns
Description
Cleans up report processing internal memory
See Also
See other functions in this section
Availability
In release 6.4.0