ajfeatread.c


Function ajFeattabinNew

Constructor for an empty feature table input object

Synopsis

Prototype
AjPFeattabin ajFeattabinNew (
      void
);

TypeNameRead/WriteDescription
AjPFeattabin RETURNFeature table input object

Returns
AjPFeattabin:Feature table input object

Description

Constructor for an empty feature table input object

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajFeattabinNewSS

Constructor for an empty feature table input object. The format and name are read.

Synopsis

Prototype
AjPFeattabin ajFeattabinNewSS (
      const AjPStr fmt,
      const AjPStr name,
      const char* type
);

TypeNameRead/WriteDescription
const AjPStrfmtInputfeature format
const AjPStrnameInputsequence name
const char*typeInputfeature type
AjPFeattabin RETURNFeature table input object

Input
fmt:(Input)feature format
name:(Input)sequence name
type:(Input)feature type
Returns
AjPFeattabin:Feature table input object

Description

Constructor for an empty feature table input object. The format and name are read.

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajFeattabinNewCSF

Constructor for an empty feature table input object. The format and name are read. The file buffer is moved to the feature table input object and should not be deleted by the calling program.

Synopsis

Prototype
AjPFeattabin ajFeattabinNewCSF (
      const char* fmt,
      const AjPStr name,
      const char* type,
      AjPFilebuff buff
);

TypeNameRead/WriteDescription
const char*fmtInputfeature format
const AjPStrnameInputsequence name
const char*typeInputfeature type
AjPFilebuffbuffModifyBuffer containing feature data
AjPFeattabin RETURNFeature table input object

Input
fmt:(Input)feature format
name:(Input)sequence name
type:(Input)feature type
Input & Output
buff:(Modify)Buffer containing feature data
Returns
AjPFeattabin:Feature table input object

Description

Constructor for an empty feature table input object. The format and name are read. The file buffer is moved to the feature table input object and should not be deleted by the calling program.

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajFeattabinNewSSF

Constructor for an empty feature table input object. The format and name are read. The file buffer is moved to the feature table input object and should not be deleted by the calling program.

Synopsis

Prototype
AjPFeattabin ajFeattabinNewSSF (
      const AjPStr fmt,
      const AjPStr name,
      const char* type,
      AjPFilebuff buff
);

TypeNameRead/WriteDescription
const AjPStrfmtInputfeature format
const AjPStrnameInputsequence name
const char*typeInputfeature type
AjPFilebuffbuffModifyBuffer containing feature data
AjPFeattabin RETURNFeature table input object

Input
fmt:(Input)feature format
name:(Input)sequence name
type:(Input)feature type
Input & Output
buff:(Modify)Buffer containing feature data
Returns
AjPFeattabin:Feature table input object

Description

Constructor for an empty feature table input object. The format and name are read. The file buffer is moved to the feature table input object and should not be deleted by the calling program.

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajFeattabinDel

Destructor for a feature table input object

Synopsis

Prototype
void ajFeattabinDel (
      AjPFeattabin* pthis
);

TypeNameRead/WriteDescription
AjPFeattabin*pthisDeleteFeature table input object
void RETURN

Output
pthis:(Delete)Feature table input object
Returns
void:No return value

Description

Destructor for a feature table input object

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajFeattabinClear

Clears a feature table input object back to "as new" condition, except for the USA list which must be preserved.

Synopsis

Prototype
void ajFeattabinClear (
      AjPFeattabin thys
);

TypeNameRead/WriteDescription
AjPFeattabinthysModifySequence input
void RETURN

Input & Output
thys:(Modify)Sequence input
Returns
void:No return value

Description

Clears a feature table input object back to "as new" condition, except for the USA list which must be preserved.

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajFeattabinSetRange

Set the begin and end range for a feature table

Synopsis

Prototype
void ajFeattabinSetRange (
      AjPFeattabin thys,
      ajint fbegin,
      ajint fend
);

TypeNameRead/WriteDescription
AjPFeattabinthysModifyFeature table input object
ajintfbeginInputBegin position
ajintfendInputEnd position
void RETURN

Input
fbegin:(Input)Begin position
fend:(Input)End position
Input & Output
thys:(Modify)Feature table input object
Returns
void:No return value

Description

Set the begin and end range for a feature table

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajFeattabinSetTypeC

Sets the type for feature input

Synopsis

Prototype
AjBool ajFeattabinSetTypeC (
      AjPFeattabin thys,
      const char* type
);

TypeNameRead/WriteDescription
AjPFeattabinthysModifyFeature input object
const char*typeInputFeature type "nucleotide" "protein"
AjBool RETURNajTrue on success

Input
type:(Input)Feature type "nucleotide" "protein"
Input & Output
thys:(Modify)Feature input object
Returns
AjBool:ajTrue on success

Description

Sets the type for feature input

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajFeattabinSetTypeS

Sets the type for feature input

Synopsis

Prototype
AjBool ajFeattabinSetTypeS (
      AjPFeattabin thys,
      const AjPStr type
);

TypeNameRead/WriteDescription
AjPFeattabinthysModifyFeature input object
const AjPStrtypeInputFeature type "nucleotide" "protein"
AjBool RETURNajTrue on success

Input
type:(Input)Feature type "nucleotide" "protein"
Input & Output
thys:(Modify)Feature input object
Returns
AjBool:ajTrue on success

Description

Sets the type for feature input

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajFeattabinQryC

Resets a feature table input object using a new Universal Query Address

Synopsis

Prototype
void ajFeattabinQryC (
      AjPFeattabin thys,
      const char* txt
);

TypeNameRead/WriteDescription
AjPFeattabinthysModifyFeature table input object.
const char*txtInputQuery
void RETURN

Input
txt:(Input)Query
Input & Output
thys:(Modify)Feature table input object.
Returns
void:No return value

Description

Resets a feature table input object using a new Universal Query Address

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajFeattabinQryS

Resets a feature table input object using a new Universal Query Address

Synopsis

Prototype
void ajFeattabinQryS (
      AjPFeattabin thys,
      const AjPStr str
);

TypeNameRead/WriteDescription
AjPFeattabinthysModifyFeature table input object.
const AjPStrstrInputQuery
void RETURN

Input
str:(Input)Query
Input & Output
thys:(Modify)Feature table input object.
Returns
void:No return value

Description

Resets a feature table input object using a new Universal Query Address

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajFeattabinRead

Generic interface function for reading in features from a file given the file handle.

Synopsis

Prototype
AjBool ajFeattabinRead (
      AjPFeattabin feattabin,
      AjPFeattable ftable
);

TypeNameRead/WriteDescription
AjPFeattabinfeattabinModifyFeature table input
AjPFeattableftableModifyFeature table containing the features read in
AjBool RETURNTrue on success

Input & Output
feattabin:(Modify)Feature table input
ftable:(Modify)Feature table containing the features read in
Returns
AjBool:True on success

Description

Generic interface function for reading in features from a file given the file handle.

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajFeattableNewRead

Generic interface function for reading in features from a file given the file handle.

Synopsis

Prototype
AjPFeattable ajFeattableNewRead (
      AjPFeattabin ftin
);

TypeNameRead/WriteDescription
AjPFeattabinftinModifySpecifies the external source (file) of the features to be read in
AjPFeattable RETURNPointer to a new feature table containing the features read in

Input & Output
ftin:(Modify)Specifies the external source (file) of the features to be read in
Returns
AjPFeattable:Pointer to a new feature table containing the features read in

Description

Generic interface function for reading in features from a file given the file handle.

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajFeattableNewReadUfo

Parses a UFO, opens an input file, and reads a feature table

Synopsis

Prototype
AjPFeattable ajFeattableNewReadUfo (
      AjPFeattabin featin,
      const AjPStr ufo
);

TypeNameRead/WriteDescription
AjPFeattabinfeatinModifyFeature input object
const AjPStrufoInputUFO feature spec
AjPFeattable RETURNFeature table created, (or NULL if failed)

Input
ufo:(Input)UFO feature spec
Input & Output
featin:(Modify)Feature input object
Returns
AjPFeattable:Feature table created, (or NULL if failed)

Description

Parses a UFO, opens an input file, and reads a feature table

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajFeatreadExit

Prints a summary of file usage with debug calls

Cleans up feature table input internal memory

Synopsis

Prototype
void ajFeatreadExit (
      void
);

TypeNameRead/WriteDescription
void RETURN

Returns
void:No return value

Description

Prints a summary of file usage with debug calls

Cleans up feature table input internal memory

See Also

See other functions in this section

Availability

In release 6.4.0

Section: Internals

Functions to return internal values

Functions: ajFeattabinTypeGetFields ajFeattabinTypeGetQlinks ajFeatinPrintFormat ajFeatinPrinthtmlFormat ajFeatinPrintbookFormat ajFeatinPrintwikiFormat ajFeattaballNew ajFeattaballDel ajFeattaballClear ajFeattaballGetfeattableId ajFeattaballNext ajFeattabaccessGetDb ajFeattabaccessMethodGetQlinks ajFeattabaccessMethodGetScope ajFeattabaccessMethodTest ajFeattabinformatTerm ajFeattabinformatTest


Function ajFeattabinTypeGetFields

Returns the listof known field names for ajFeatRead

Synopsis

Prototype
const char* ajFeattabinTypeGetFields (
      void
);

TypeNameRead/WriteDescription
const char* RETURNList of field names

Returns
const char*:List of field names

Description

Returns the listof known field names for ajFeatRead

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajFeattabinTypeGetQlinks

Returns the listof known query link operators for ajFeatRead

Synopsis

Prototype
const char* ajFeattabinTypeGetQlinks (
      void
);

TypeNameRead/WriteDescription
const char* RETURNList of field names

Returns
const char*:List of field names

Description

Returns the listof known query link operators for ajFeatRead

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajFeatinPrintFormat

Reports the internal data structures for input feature formats

Synopsis

Prototype
void ajFeatinPrintFormat (
      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 for input feature formats

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajFeatinPrinthtmlFormat

Reports the internal data structures for input feature formats

Synopsis

Prototype
void ajFeatinPrinthtmlFormat (
      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 for input feature formats

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajFeatinPrintbookFormat

Reports the input feature format internals in docbook text format

Synopsis

Prototype
void ajFeatinPrintbookFormat (
      AjPFile outf
);

TypeNameRead/WriteDescription
AjPFileoutfModifyOutput file
void RETURN

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

Description

Reports the input feature format internals in docbook text format

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajFeatinPrintwikiFormat

Reports the input feature format internals in wiki text format

Synopsis

Prototype
void ajFeatinPrintwikiFormat (
      AjPFile outf
);

TypeNameRead/WriteDescription
AjPFileoutfModifyOutput file
void RETURN

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

Description

Reports the input feature format internals in wiki text format

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajFeattaballNew

Creates a new feature input stream object.

Synopsis

Prototype
AjPFeattaball ajFeattaballNew (
      void
);

TypeNameRead/WriteDescription
AjPFeattaball RETURNNew feature input stream object.

Returns
AjPFeattaball:New feature input stream object.

Description

Creates a new feature input stream object.

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajFeattaballDel

Deletes a feature input stream object.

Synopsis

Prototype
void ajFeattaballDel (
      AjPFeattaball* pthis
);

TypeNameRead/WriteDescription
AjPFeattaball*pthisDeleteFeature input stream
void RETURN

Output
pthis:(Delete)Feature input stream
Returns
void:No return value

Description

Deletes a feature input stream object.

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajFeattaballClear

Clears a feature input stream object back to "as new" condition, except for the query list which must be preserved.

Synopsis

Prototype
void ajFeattaballClear (
      AjPFeattaball thys
);

TypeNameRead/WriteDescription
AjPFeattaballthysOutputFeature input stream
void RETURN

Output
thys:(Output)Feature input stream
Returns
void:No return value

Description

Clears a feature input stream object back to "as new" condition, except for the query list which must be preserved.

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajFeattaballGetfeattableId

Returns the identifier of the current feature table in an input stream

Synopsis

Prototype
const AjPStr ajFeattaballGetfeattableId (
      const AjPFeattaball thys
);

TypeNameRead/WriteDescription
const AjPFeattaballthysInputFeature input stream
const AjPStr RETURNIdentifier

Input
thys:(Input)Feature input stream
Returns
const AjPStr:Identifier

Description

Returns the identifier of the current feature table in an input stream

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajFeattaballNext

Parse a feature query into format, access, file and entry

Split at delimiters. Check for the first part as a valid format Check for the remaining first part as a database name or as a file that can be opened. Anything left is an entryname spec.

Return the results in the AjPFeattable object but leave the file open for future calls.

Synopsis

Prototype
AjBool ajFeattaballNext (
      AjPFeattaball thys,
      AjPFeattable* Pfeattable
);

TypeNameRead/WriteDescription
AjPFeattaballthysOutputFeature input stream
AjPFeattable*PfeattableModifyFeature table returned
AjBool RETURNajTrue on success.

Output
thys:(Output)Feature input stream
Input & Output
Pfeattable:(Modify)Feature table returned
Returns
AjBool:ajTrue on success.

Description

Parse a feature query into format, access, file and entry

Split at delimiters. Check for the first part as a valid format Check for the remaining first part as a database name or as a file that can be opened. Anything left is an entryname spec.

Return the results in the AjPFeattable object but leave the file open for future calls.

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajFeattabaccessGetDb

returns the table in which feature table database access details are registered

Synopsis

Prototype
AjPTable ajFeattabaccessGetDb (
      void
);

TypeNameRead/WriteDescription
AjPTable RETURNAccess functions hash table

Returns
AjPTable:Access functions hash table

Description

returns the table in which feature table database access details are registered

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajFeattabaccessMethodGetQlinks

Tests for a named method for feature table term reading and returns the known query link operators

Synopsis

Prototype
const char* ajFeattabaccessMethodGetQlinks (
      const AjPStr method
);

TypeNameRead/WriteDescription
const AjPStrmethodInputMethod required.
const char* RETURNKnown link operators

Input
method:(Input)Method required.
Returns
const char*:Known link operators

Description

Tests for a named method for feature table term reading and returns the known query link operators

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajFeattabaccessMethodGetScope

Tests for a named method for feature table term reading and returns the scope (entry, query or all).

Synopsis

Prototype
ajuint ajFeattabaccessMethodGetScope (
      const AjPStr method
);

TypeNameRead/WriteDescription
const AjPStrmethodInputMethod required.
ajuint RETURNScope flags

Input
method:(Input)Method required.
Returns
ajuint:Scope flags

Description

Tests for a named method for feature table term reading and returns the scope (entry, query or all).

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajFeattabaccessMethodTest

Tests for a named method for feature table reading.

Synopsis

Prototype
AjBool ajFeattabaccessMethodTest (
      const AjPStr method
);

TypeNameRead/WriteDescription
const AjPStrmethodInputMethod required.
AjBool RETURNajTrue on success.

Input
method:(Input)Method required.
Returns
AjBool:ajTrue on success.

Description

Tests for a named method for feature table reading.

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajFeattabinformatTerm

Tests whether a feature table data input format term is known

Synopsis

Prototype
AjBool ajFeattabinformatTerm (
      const AjPStr term
);

TypeNameRead/WriteDescription
const AjPStrtermInputFormat term EDAM ID
AjBool RETURNajTrue if term was accepted

Input
term:(Input)Format term EDAM ID
Returns
AjBool:ajTrue if term was accepted

Description

Tests whether a feature table data input format term is known

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajFeattabinformatTest

Tests whether a named feature table data input format is known

Synopsis

Prototype
AjBool ajFeattabinformatTest (
      const AjPStr format
);

TypeNameRead/WriteDescription
const AjPStrformatInputFormat
AjBool RETURNajTrue if format was accepted

Input
format:(Input)Format
Returns
AjBool:ajTrue if format was accepted

Description

Tests whether a named feature table data input format is known

See Also

See other functions in this section

Availability

In release 6.4.0