ajreport.c


Function ajReportDel

Destructor for report objects

Synopsis

Prototype
void ajReportDel (
      AjPReport* pthys
);

TypeNameRead/WriteDescription
AjPReport*pthysDeleteReport object reference
void RETURN

Output
pthys:(Delete)Report object reference
Returns
void:No return value

Description

Destructor for report objects

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajReportOpen

Opens a new report file

Synopsis

Prototype
AjBool ajReportOpen (
      AjPReport thys,
      const AjPStr name
);

TypeNameRead/WriteDescription
AjPReportthysModifyReport object
const AjPStrnameInputFile name
AjBool RETURNajTrue on success

Input
name:(Input)File name
Input & Output
thys:(Modify)Report object
Returns
AjBool:ajTrue on success

Description

Opens a new report file

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajReportFormatDefault

Sets the default format for a feature report

Synopsis

Prototype
AjBool ajReportFormatDefault (
      AjPStr* pformat
);

TypeNameRead/WriteDescription
AjPStr*pformatOutputDefault format returned
AjBool RETURNajTrue 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

Function ajReportFindFormat

Looks for the specified report format in the internal definitions and returns the index.

Synopsis

Prototype
AjBool ajReportFindFormat (
      const AjPStr format,
      ajint* iformat
);

TypeNameRead/WriteDescription
const AjPStrformatInputFormat required.
ajint*iformatOutputIndex
AjBool RETURNajTrue on success.

Input
format:(Input)Format required.
Output
iformat:(Output)Index
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

Function ajReportSetTagsS

Sets the tag list for a report

Synopsis

Prototype
AjBool ajReportSetTagsS (
      AjPReport thys,
      const AjPStr taglist
);

TypeNameRead/WriteDescription
AjPReportthysModifyReport object
const AjPStrtaglistInputTag names list
AjBool RETURNajTrue on success

Input
taglist:(Input)Tag names list
Input & Output
thys:(Modify)Report object
Returns
AjBool:ajTrue on success

Description

Sets the tag list for a report

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajReportValid

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
);

TypeNameRead/WriteDescription
AjPReportthysModifyReport object
AjBool RETURNajTrue on success

Input & Output
thys:(Modify)Report object
Returns
AjBool:ajTrue on success

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

Function ajReportNew

Constructor for a report object

Synopsis

Prototype
AjPReport ajReportNew (
      void
);

TypeNameRead/WriteDescription
AjPReport RETURNNew 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

Function ajReportWrite

Writes a feature report

Synopsis

Prototype
AjBool ajReportWrite (
      AjPReport thys,
      const AjPFeattable ftable,
      const AjPSeq seq
);

TypeNameRead/WriteDescription
AjPReportthysModifyReport object
const AjPFeattableftableInputFeature table object
const AjPSeqseqInputSequence object
AjBool RETURNTrue 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

Function ajReportClose

Closes a feature report

Synopsis

Prototype
void ajReportClose (
      AjPReport thys
);

TypeNameRead/WriteDescription
AjPReportthysModifyReport object
void RETURN

Input & Output
thys:(Modify)Report object
Returns
void:No return value

Description

Closes a feature report

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajReportWriteHeader

Writes a feature report header and updates internal counters.

Synopsis

Prototype
void ajReportWriteHeader (
      AjPReport thys,
      const AjPFeattable ftable,
      const AjPSeq seq
);

TypeNameRead/WriteDescription
AjPReportthysModifyReport object
const AjPFeattableftableInputFeature table object
const AjPSeqseqInputSequence object
void RETURN

Input
ftable:(Input)Feature table object
seq:(Input)Sequence object
Input & Output
thys:(Modify)Report object
Returns
void:No return value

Description

Writes a feature report header and updates internal counters.

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajReportWriteTail

Writes (and clears) a feature report tail

Synopsis

Prototype
void ajReportWriteTail (
      AjPReport thys,
      const AjPFeattable ftable,
      const AjPSeq seq
);

TypeNameRead/WriteDescription
AjPReportthysModifyReport object
const AjPFeattableftableInputFeature table object
const AjPSeqseqInputSequence object
void RETURN

Input
ftable:(Input)Feature table object
seq:(Input)Sequence object
Input & Output
thys:(Modify)Report object
Returns
void:No return value

Description

Writes (and clears) a feature report tail

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajReportSetHeaderS

Defines a feature report header

Synopsis

Prototype
void ajReportSetHeaderS (
      AjPReport thys,
      const AjPStr header
);

TypeNameRead/WriteDescription
AjPReportthysModifyReport object
const AjPStrheaderInputReport header with embedded newlines
void RETURN

Input
header:(Input)Report header with embedded newlines
Input & Output
thys:(Modify)Report object
Returns
void:No return value

Description

Defines a feature report header

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajReportSetHeaderC

Defines a feature report header

Synopsis

Prototype
void ajReportSetHeaderC (
      AjPReport thys,
      const char* header
);

TypeNameRead/WriteDescription
AjPReportthysModifyReport object
const char*headerInputReport header with embedded newlines
void RETURN

Input
header:(Input)Report header with embedded newlines
Input & Output
thys:(Modify)Report object
Returns
void:No return value

Description

Defines a feature report header

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajReportAppendHeaderC

Appends to a feature report header

Synopsis

Prototype
void ajReportAppendHeaderC (
      AjPReport thys,
      const char* header
);

TypeNameRead/WriteDescription
AjPReportthysModifyReport object
const char*headerInputReport header with embedded newlines
void RETURN

Input
header:(Input)Report header with embedded newlines
Input & Output
thys:(Modify)Report object
Returns
void:No return value

Description

Appends to a feature report header

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajReportAppendHeaderS

Defines a feature report header

Synopsis

Prototype
void ajReportAppendHeaderS (
      AjPReport thys,
      const AjPStr header
);

TypeNameRead/WriteDescription
AjPReportthysModifyReport object
const AjPStrheaderInputReport header with embedded newlines
void RETURN

Input
header:(Input)Report header with embedded newlines
Input & Output
thys:(Modify)Report object
Returns
void:No return value

Description

Defines a feature report header

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajReportSetSubheaderC

Appends to a feature report subheader

Synopsis

Prototype
void ajReportSetSubheaderC (
      AjPReport thys,
      const char* header
);

TypeNameRead/WriteDescription
AjPReportthysModifyReport object
const char*headerInputReport header with embedded newlines
void RETURN

Input
header:(Input)Report header with embedded newlines
Input & Output
thys:(Modify)Report object
Returns
void:No return value

Description

Appends to a feature report subheader

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajReportSetSubheaderS

Defines a feature report subheader

Synopsis

Prototype
void ajReportSetSubheaderS (
      AjPReport thys,
      const AjPStr header
);

TypeNameRead/WriteDescription
AjPReportthysModifyReport object
const AjPStrheaderInputReport header with embedded newlines
void RETURN

Input
header:(Input)Report header with embedded newlines
Input & Output
thys:(Modify)Report object
Returns
void:No return value

Description

Defines a feature report subheader

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajReportAppendSubheaderC

Appends to a feature report subheader

Synopsis

Prototype
void ajReportAppendSubheaderC (
      AjPReport thys,
      const char* header
);

TypeNameRead/WriteDescription
AjPReportthysModifyReport object
const char*headerInputReport header with embedded newlines
void RETURN

Input
header:(Input)Report header with embedded newlines
Input & Output
thys:(Modify)Report object
Returns
void:No return value

Description

Appends to a feature report subheader

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajReportAppendSubheaderS

Defines a feature report subheader

Synopsis

Prototype
void ajReportAppendSubheaderS (
      AjPReport thys,
      const AjPStr header
);

TypeNameRead/WriteDescription
AjPReportthysModifyReport object
const AjPStrheaderInputReport header with embedded newlines
void RETURN

Input
header:(Input)Report header with embedded newlines
Input & Output
thys:(Modify)Report object
Returns
void:No return value

Description

Defines a feature report subheader

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajReportSetSeqstats

Defines a feature report tail

Synopsis

Prototype
void ajReportSetSeqstats (
      AjPReport thys,
      const AjPSeqall seqall
);

TypeNameRead/WriteDescription
AjPReportthysModifyReport object
const AjPSeqallseqallInputSequence stream object
void RETURN

Input
seqall:(Input)Sequence stream object
Input & Output
thys:(Modify)Report object
Returns
void:No return value

Description

Defines a feature report tail

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajReportSetSeqsetstats

Defines a feature report tail

Synopsis

Prototype
void ajReportSetSeqsetstats (
      AjPReport thys,
      const AjPSeqset seqset
);

TypeNameRead/WriteDescription
AjPReportthysModifyReport object
const AjPSeqsetseqsetInputSequence set object
void RETURN

Input
seqset:(Input)Sequence set object
Input & Output
thys:(Modify)Report object
Returns
void:No return value

Description

Defines a feature report tail

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajReportSetStatistics

Defines a feature report tail

Synopsis

Prototype
void ajReportSetStatistics (
      AjPReport thys,
      ajlong totseqs,
      ajlong totlength
);

TypeNameRead/WriteDescription
AjPReportthysModifyReport object
ajlongtotseqsInputTotal number of sequences processed
ajlongtotlengthInputTotal 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
void:No return value

Description

Defines a feature report tail

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajReportSetTailC

Defines a feature report tail

Synopsis

Prototype
void ajReportSetTailC (
      AjPReport thys,
      const char* tail
);

TypeNameRead/WriteDescription
AjPReportthysModifyReport object
const char*tailInputReport tail with embedded newlines
void RETURN

Input
tail:(Input)Report tail with embedded newlines
Input & Output
thys:(Modify)Report object
Returns
void:No return value

Description

Defines a feature report tail

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajReportSetTailS

Defines a feature report tail

Synopsis

Prototype
void ajReportSetTailS (
      AjPReport thys,
      const AjPStr tail
);

TypeNameRead/WriteDescription
AjPReportthysModifyReport object
const AjPStrtailInputReport tail with embedded newlines
void RETURN

Input
tail:(Input)Report tail with embedded newlines
Input & Output
thys:(Modify)Report object
Returns
void:No return value

Description

Defines a feature report tail

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajReportAppendTailC

Appends to a feature report tail

Synopsis

Prototype
void ajReportAppendTailC (
      AjPReport thys,
      const char* tail
);

TypeNameRead/WriteDescription
AjPReportthysModifyReport object
const char*tailInputReport tail with embedded newlines
void RETURN

Input
tail:(Input)Report tail with embedded newlines
Input & Output
thys:(Modify)Report object
Returns
void:No return value

Description

Appends to a feature report tail

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajReportAppendTailS

Appends to a feature report tail

Synopsis

Prototype
void ajReportAppendTailS (
      AjPReport thys,
      const AjPStr tail
);

TypeNameRead/WriteDescription
AjPReportthysModifyReport object
const AjPStrtailInputReport tail with embedded newlines
void RETURN

Input
tail:(Input)Report tail with embedded newlines
Input & Output
thys:(Modify)Report object
Returns
void:No return value

Description

Appends to a feature report tail

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajReportSetSubtailC

Defines a feature report subtail

Synopsis

Prototype
void ajReportSetSubtailC (
      AjPReport thys,
      const char* tail
);

TypeNameRead/WriteDescription
AjPReportthysModifyReport object
const char*tailInputReport tail with embedded newlines
void RETURN

Input
tail:(Input)Report tail with embedded newlines
Input & Output
thys:(Modify)Report object
Returns
void:No return value

Description

Defines a feature report subtail

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajReportSetSubtailS

Defines a feature report subtail

Synopsis

Prototype
void ajReportSetSubtailS (
      AjPReport thys,
      const AjPStr tail
);

TypeNameRead/WriteDescription
AjPReportthysModifyReport object
const AjPStrtailInputReport tail with embedded newlines
void RETURN

Input
tail:(Input)Report tail with embedded newlines
Input & Output
thys:(Modify)Report object
Returns
void:No return value

Description

Defines a feature report subtail

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajReportAppendSubtailC

Appends to a feature report subtail

Synopsis

Prototype
void ajReportAppendSubtailC (
      AjPReport thys,
      const char* tail
);

TypeNameRead/WriteDescription
AjPReportthysModifyReport object
const char*tailInputReport tail with embedded newlines
void RETURN

Input
tail:(Input)Report tail with embedded newlines
Input & Output
thys:(Modify)Report object
Returns
void:No return value

Description

Appends to a feature report subtail

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajReportAppendSubtailS

Appends to a feature report subtail

Synopsis

Prototype
void ajReportAppendSubtailS (
      AjPReport thys,
      const AjPStr tail
);

TypeNameRead/WriteDescription
AjPReportthysModifyReport object
const AjPStrtailInputReport tail with embedded newlines
void RETURN

Input
tail:(Input)Report tail with embedded newlines
Input & Output
thys:(Modify)Report object
Returns
void:No return value

Description

Appends to a feature report subtail

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajReportSetType

Sets the report type (if it is not set already)

Synopsis

Prototype
void ajReportSetType (
      AjPReport thys,
      const AjPFeattable ftable,
      const AjPSeq seq
);

TypeNameRead/WriteDescription
AjPReportthysModifyReport object
const AjPFeattableftableInputFeature table object
const AjPSeqseqInputSequence object
void RETURN

Input
ftable:(Input)Feature table object
seq:(Input)Sequence object
Input & Output
thys:(Modify)Report object
Returns
void:No return value

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

Function ajReportGetSeqnameSeq

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
);

TypeNameRead/WriteDescription
const AjPReportthysInputReport object
const AjPSeqseqInputSequence object
const AjPStr RETURNSequence 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

Function ajReportAddFileF

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
);

TypeNameRead/WriteDescription
AjPReportthysModifyReport object
AjPFilefileModifyFile
const AjPStrtypeInputType (simple text description)
void RETURN

Input
type:(Input)Type (simple text description)
Input & Output
thys:(Modify)Report object
file:(Modify)File
Returns
void:No return value

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

Function ajReportPrintFormat

Reports the internal data structures

Synopsis

Prototype
void ajReportPrintFormat (
      AjPFile outf,
      AjBool full
);

TypeNameRead/WriteDescription
AjPFileoutfModifyOutput file
AjBoolfullInputFull report (usually ajFalse)
void RETURN

Input
full:(Input)Full report (usually ajFalse)
Input & Output
outf:(Modify)Output file
Returns
void:No return value

Description

Reports the internal data structures

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajReportPrinthtmlFormat

Reports the internal data structures

Synopsis

Prototype
void ajReportPrinthtmlFormat (
      AjPFile outf
);

TypeNameRead/WriteDescription
AjPFileoutfModifyOutput file
void RETURN

Input & Output
outf:(Modify)Output file
Returns
void:No return value

Description

Reports the internal data structures

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajReportPrintbookFormat

Reports the report format internals in DocBook format

Synopsis

Prototype
void ajReportPrintbookFormat (
      AjPFile outf
);

TypeNameRead/WriteDescription
AjPFileoutfModifyOutput file
void RETURN

Input & Output
outf:(Modify)Output file
Returns
void:No return value

Description

Reports the report format internals in DocBook format

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajReportPrintwikiFormat

Reports the report format internals as wikitext

Synopsis

Prototype
void ajReportPrintwikiFormat (
      AjPFile outf
);

TypeNameRead/WriteDescription
AjPFileoutfModifyOutput file
void RETURN

Input & Output
outf:(Modify)Output file
Returns
void:No return value

Description

Reports the report format internals as wikitext

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajReportDummyFunction

Dummy function to catch all unused functions defined in the ajreport source file.

Synopsis

Prototype
void ajReportDummyFunction (
      void
);

TypeNameRead/WriteDescription
void RETURN

Returns
void:No return value

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

Function ajReportExit

Cleans up report processing internal memory

Synopsis

Prototype
void ajReportExit (
      void
);

TypeNameRead/WriteDescription
void RETURN

Returns
void:No return value

Description

Cleans up report processing internal memory

See Also

See other functions in this section

Availability

In release 6.4.0