ajseqread.c


Section: Sequence Input Constructors

All constructors return a new sequence input object by pointer. It is the responsibility of the user to first destroy any previous sequence input object. The target pointer does not need to be initialised to NULL, but it is good programming practice to do so anyway.

Functions: ajSeqinNew


Function ajSeqinNew

Creates a new sequence input object.

Synopsis

Prototype
AjPSeqin ajSeqinNew (
      void
);

TypeNameRead/WriteDescription
AjPSeqin RETURNNew sequence input object.

Returns
AjPSeqin:New sequence input object.

Description

Creates a new sequence input object.

See Also

See other functions in this section

Availability

In release 6.4.0

Section: Sequence Input Destructors

Destruction destroys all internal data structures and frees the memory allocated for the sequence input object.

Functions: ajSeqinDel


Function ajSeqinDel

Deletes a sequence input object.

Synopsis

Prototype
void ajSeqinDel (
      AjPSeqin* pthis
);

TypeNameRead/WriteDescription
AjPSeqin*pthisDeleteSequence input
void RETURN

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

Description

Deletes a sequence input object.

See Also

See other functions in this section

Availability

In release 6.4.0

Section: Sequence Input Modifiers

These functions use the contents of a sequence input object and update them.

Functions: ajSeqinUsa ajSeqinSetNuc ajSeqinSetProt ajSeqinSetRange


Function ajSeqinUsa

Creates or resets a sequence input object using a new Universal Sequence Address

Synopsis

Prototype
void ajSeqinUsa (
      AjPSeqin* pthis,
      const AjPStr Usa
);

TypeNameRead/WriteDescription
AjPSeqin*pthisModifySequence input object.
const AjPStrUsaInputUSA
void RETURN

Input
Usa:(Input)USA
Input & Output
pthis:(Modify)Sequence input object.
Returns
void:No return value

Description

Creates or resets a sequence input object using a new Universal Sequence Address

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajSeqinSetNuc

Sets the type to be forced as nucleic for a sequence input object

Synopsis

Prototype
void ajSeqinSetNuc (
      AjPSeqin seqin
);

TypeNameRead/WriteDescription
AjPSeqinseqinModifySequence input object to be set.
void RETURN

Input & Output
seqin:(Modify)Sequence input object to be set.
Returns
void:No return value

Description

Sets the type to be forced as nucleic for a sequence input object

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajSeqinSetProt

Sets the type to be forced as protein for a sequence input object

Synopsis

Prototype
void ajSeqinSetProt (
      AjPSeqin seqin
);

TypeNameRead/WriteDescription
AjPSeqinseqinModifySequence input object to be set.
void RETURN

Input & Output
seqin:(Modify)Sequence input object to be set.
Returns
void:No return value

Description

Sets the type to be forced as protein for a sequence input object

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajSeqinSetRange

Sets the start and end positions for a sequence input object

Synopsis

Prototype
void ajSeqinSetRange (
      AjPSeqin seqin,
      ajint ibegin,
      ajint iend
);

TypeNameRead/WriteDescription
AjPSeqinseqinModifySequence input object to be set.
ajintibeginInputStart position. Negative values are from the end.
ajintiendInputEnd position. Negative values are from the end.
void RETURN

Input
ibegin:(Input)Start position. Negative values are from the end.
iend:(Input)End position. Negative values are from the end.
Input & Output
seqin:(Modify)Sequence input object to be set.
Returns
void:No return value

Description

Sets the start and end positions for a sequence input object

See Also

See other functions in this section

Availability

In release 6.4.0

Section: Sequence Input Operators

These functions use the contents of a sequence input object but do not make any changes.

Functions: ajSeqAllRead ajSeqallFile ajSeqallNext ajSeqinClearPos ajSeqinClear


Function ajSeqAllRead

Parse a USA Uniform Sequence Address 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 AjPSeq object but leave the file open for future calls.

Synopsis

Prototype
AjBool ajSeqAllRead (
      AjPSeq thys,
      AjPSeqin seqin
);

TypeNameRead/WriteDescription
AjPSeqthysOutputSequence returned.
AjPSeqinseqinModifySequence input definitions
AjBool RETURNajTrue on success.

Output
thys:(Output)Sequence returned.
Input & Output
seqin:(Modify)Sequence input definitions
Returns
AjBool:ajTrue on success.

Description

Parse a USA Uniform Sequence Address 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 AjPSeq object but leave the file open for future calls.

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajSeqallFile

Parse a USA Uniform Sequence Address

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

Synopsis

Prototype
AjPSeqall ajSeqallFile (
      const AjPStr usa
);

TypeNameRead/WriteDescription
const AjPStrusaInputsequence usa.
AjPSeqall RETURNseqall object

Input
usa:(Input)sequence usa.
Returns
AjPSeqall:seqall object

Description

Parse a USA Uniform Sequence Address

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

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajSeqallNext

Reads the next sequence into a sequence stream. For the first call this simply returns the sequence already loaded. For later calls a new sequence is read.

Synopsis

Prototype
AjBool ajSeqallNext (
      AjPSeqall seqall,
      AjPSeq* retseq
);

TypeNameRead/WriteDescription
AjPSeqallseqallModifySequence stream
AjPSeq*retseqOutputSequence
AjBool RETURNajTrue if a sequence was refound. ajFalse when all is done.

Output
retseq:(Output)Sequence
Input & Output
seqall:(Modify)Sequence stream
Returns
AjBool:ajTrue if a sequence was refound. ajFalse when all is done.

Description

Reads the next sequence into a sequence stream. For the first call this simply returns the sequence already loaded. For later calls a new sequence is read.

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajSeqinClearPos

Clears a Sequence input object position information as possibly read from a USA that included the begin, end and direction

Synopsis

Prototype
void ajSeqinClearPos (
      AjPSeqin thys
);

TypeNameRead/WriteDescription
AjPSeqinthysModifySequence input
void RETURN

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

Description

Clears a Sequence input object position information as possibly read from a USA that included the begin, end and direction

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajSeqinClear

Clears a Sequence input object back to "as new" condition, except for the USA list and the features setting which must be preserved.

Synopsis

Prototype
void ajSeqinClear (
      AjPSeqin thys
);

TypeNameRead/WriteDescription
AjPSeqinthysOutputSequence input
void RETURN

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

Description

Clears a Sequence input object back to "as new" condition, except for the USA list and the features setting which must be preserved.

See Also

See other functions in this section

Availability

In release 6.4.0

Section: Sequence inputs

These functions read the sequence provided by the first argument

Functions: ajSeqRead


Function ajSeqRead

If the file is not yet open, calls seqinUsaProcess to convert the USA into an open file stream.

Uses seqRead for the actual file reading.

Returns the results in the AjPSeq object.

Synopsis

Prototype
AjBool ajSeqRead (
      AjPSeq thys,
      AjPSeqin seqin
);

TypeNameRead/WriteDescription
AjPSeqthysOutputSequence returned.
AjPSeqinseqinModifySequence input definitions
AjBool RETURNajTrue on success.

Output
thys:(Output)Sequence returned.
Input & Output
seqin:(Modify)Sequence input definitions
Returns
AjBool:ajTrue on success.

Description

If the file is not yet open, calls seqinUsaProcess to convert the USA into an open file stream.

Uses seqRead for the actual file reading.

Returns the results in the AjPSeq object.

See Also

See other functions in this section

Availability

In release 6.4.0

Section: Sequence Set Inputs

These functions read the sequence set object provided as the first argument.

Functions: ajSeqsetRead ajSeqsetallRead ajSeqsetFromList ajSeqsetFromPair ajSeqsetApp ajSeqPrintInFormat ajSeqPrintbookInFormat ajSeqPrinthtmlInFormat ajSeqPrintwikiInFormat ajSeqFormatTest ajSeqUsaGetBase


Function ajSeqsetRead

Parse a USA Uniform Sequence Address 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.

Read all the sequences until done

Return the results in the AjPSeqset object.

Synopsis

Prototype
AjBool ajSeqsetRead (
      AjPSeqset thys,
      AjPSeqin seqin
);

TypeNameRead/WriteDescription
AjPSeqsetthysOutputSequence set returned.
AjPSeqinseqinModifySequence input definitions
AjBool RETURNajTrue on success.

Output
thys:(Output)Sequence set returned.
Input & Output
seqin:(Modify)Sequence input definitions
Returns
AjBool:ajTrue on success.

Description

Parse a USA Uniform Sequence Address 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.

Read all the sequences until done

Return the results in the AjPSeqset object.

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajSeqsetallRead

Parse a USA Uniform Sequence Address 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.

Read all the sequences into sequence sets until done

Start a new set for each multiple sequence input

Return the results in the AjPList object with AjPSeqset nodes

Synopsis

Prototype
AjBool ajSeqsetallRead (
      AjPList thys,
      AjPSeqin seqin
);

TypeNameRead/WriteDescription
AjPListthysOutputList of sequence sets returned.
AjPSeqinseqinModifySequence input definitions
AjBool RETURNajTrue on success.

Output
thys:(Output)List of sequence sets returned.
Input & Output
seqin:(Modify)Sequence input definitions
Returns
AjBool:ajTrue on success.

Description

Parse a USA Uniform Sequence Address 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.

Read all the sequences into sequence sets until done

Start a new set for each multiple sequence input

Return the results in the AjPList object with AjPSeqset nodes

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajSeqsetFromList

Builds a sequence set from a list of sequences

Synopsis

Prototype
ajint ajSeqsetFromList (
      AjPSeqset thys,
      const AjPList list
);

TypeNameRead/WriteDescription
AjPSeqsetthysOutputSequence set
const AjPListlistInputList of sequence objects
ajint RETURNNumber of sequences in the set.

Input
list:(Input)List of sequence objects
Output
thys:(Output)Sequence set
Returns
ajint:Number of sequences in the set.

Description

Builds a sequence set from a list of sequences

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajSeqsetFromPair

Builds a sequence set from a pair of sequences

Synopsis

Prototype
ajint ajSeqsetFromPair (
      AjPSeqset thys,
      const AjPSeq seqa,
      const AjPSeq seqb
);

TypeNameRead/WriteDescription
AjPSeqsetthysOutputSequence set
const AjPSeqseqaInputSequence 1
const AjPSeqseqbInputSequence 2
ajint RETURNNumber of sequences in the set.

Input
seqa:(Input)Sequence 1
seqb:(Input)Sequence 2
Output
thys:(Output)Sequence set
Returns
ajint:Number of sequences in the set.

Description

Builds a sequence set from a pair of sequences

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajSeqsetApp

Adds a sequence to a sequence set

Synopsis

Prototype
ajint ajSeqsetApp (
      AjPSeqset thys,
      const AjPSeq seq
);

TypeNameRead/WriteDescription
AjPSeqsetthysOutputSequence set
const AjPSeqseqInputSequence
ajint RETURNNumber of sequences in the set.

Input
seq:(Input)Sequence
Output
thys:(Output)Sequence set
Returns
ajint:Number of sequences in the set.

Description

Adds a sequence to a sequence set

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajSeqPrintInFormat

Reports the internal data structures

Synopsis

Prototype
void ajSeqPrintInFormat (
      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 ajSeqPrintbookInFormat

Reports the internal data structures as a Docbook table

Synopsis

Prototype
void ajSeqPrintbookInFormat (
      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 as a Docbook table

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajSeqPrinthtmlInFormat

Reports the internal data structures as an HTML table

Synopsis

Prototype
void ajSeqPrinthtmlInFormat (
      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 as an HTML table

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajSeqPrintwikiInFormat

Reports the internal data structures as a wiki table

Synopsis

Prototype
void ajSeqPrintwikiInFormat (
      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 as a wiki table

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajSeqFormatTest

tests whether a named format is known

Synopsis

Prototype
AjBool ajSeqFormatTest (
      const AjPStr format
);

TypeNameRead/WriteDescription
const AjPStrformatInputFormat
AjBool RETURNajTrue if formats was accepted

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

Description

tests whether a named format is known

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajSeqUsaGetBase

Extracts the base part from a USA, suitable for use in fetching other sequences from the same source

Synopsis

Prototype
AjBool ajSeqUsaGetBase (
      const AjPStr usa,
      AjPStr* Pbaseusa
);

TypeNameRead/WriteDescription
const AjPStrusaInputOriginal USA
AjPStr*PbaseusaModifyBase part of USA
AjBool RETURNTrue on success

Input
usa:(Input)Original USA
Input & Output
Pbaseusa:(Modify)Base part of USA
Returns
AjBool:True on success

Description

Extracts the base part from a USA, suitable for use in fetching other sequences from the same source

See Also

See other functions in this section

Availability

In release 6.4.0

Section: Sequence Query Operators

These functions use the contents of a sequence query object but do not make any changes.

Functions: ajSeqParseFasta ajSeqParseNcbi ajSeqParseFastq ajSeqGetFromUsaRange ajSeqGetFromUsa ajSeqsetGetFromUsa ajSeqReadExit


Function ajSeqParseFasta

Parse an NCBI format fasta line. Return id acc sv and description

Synopsis

Prototype
AjBool ajSeqParseFasta (
      const AjPStr instr,
      AjPStr* id,
      AjPStr* acc,
      AjPStr* sv,
      AjPStr* desc
);

TypeNameRead/WriteDescription
const AjPStrinstrInputfasta line.
AjPStr*idOutputid.
AjPStr*accOutputaccession number.
AjPStr*svOutputsequence version number.
AjPStr*descOutputdescription.
AjBool RETURNajTrue if fasta format

Input
instr:(Input)fasta line.
Output
id:(Output)id.
acc:(Output)accession number.
sv:(Output)sequence version number.
desc:(Output)description.
Returns
AjBool:ajTrue if fasta format

Description

Parse an NCBI format fasta line. Return id acc sv and description

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajSeqParseNcbi

Parse an NCBI format fasta line. Return id acc and description.

Tries to cope with the amazing variety of identifiers NCBI inflicts on us all - see the BLAST document README.formatdb from NCBI for some of the gory detail, and look at some real files for clues to what can really happen. Sadly,'real files' also includes internal IDs in blast databases reformatted by formatdb.

Synopsis

Prototype
AjBool ajSeqParseNcbi (
      const AjPStr instr,
      AjPStr* id,
      AjPStr* acc,
      AjPStr* sv,
      AjPStr* gi,
      AjPStr* db,
      AjPStr* desc
);

TypeNameRead/WriteDescription
const AjPStrinstrInputfasta line.
AjPStr*idOutputid.
AjPStr*accOutputaccession number.
AjPStr*svOutputsequence version number.
AjPStr*giOutputGI version number.
AjPStr*dbOutputNCBI database name
AjPStr*descOutputdescription.
AjBool RETURNajTrue if ncbi format

Input
instr:(Input)fasta line.
Output
id:(Output)id.
acc:(Output)accession number.
sv:(Output)sequence version number.
gi:(Output)GI version number.
db:(Output)NCBI database name
desc:(Output)description.
Returns
AjBool:ajTrue if ncbi format

Description

Parse an NCBI format fasta line. Return id acc and description.

Tries to cope with the amazing variety of identifiers NCBI inflicts on us all - see the BLAST document README.formatdb from NCBI for some of the gory detail, and look at some real files for clues to what can really happen. Sadly,'real files' also includes internal IDs in blast databases reformatted by formatdb.

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajSeqParseFastq

Parse a fastq id line. Return id acc sv and description

Synopsis

Prototype
AjBool ajSeqParseFastq (
      const AjPStr instr,
      AjPStr* id,
      AjPStr* desc
);

TypeNameRead/WriteDescription
const AjPStrinstrInputfastq line.
AjPStr*idOutputid.
AjPStr*descOutputdescription.
AjBool RETURNajTrue if fastq format

Input
instr:(Input)fastq line.
Output
id:(Output)id.
desc:(Output)description.
Returns
AjBool:ajTrue if fastq format

Description

Parse a fastq id line. Return id acc sv and description

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajSeqGetFromUsaRange

Returns a sequence given a USA

Synopsis

Prototype
AjBool ajSeqGetFromUsaRange (
      const AjPStr thys,
      AjBool protein,
      ajint ibegin,
      ajint iend,
      AjPSeq seq
);

TypeNameRead/WriteDescription
const AjPStrthysInputUSA
AjBoolproteinInputTrue if protein
ajintibeginInputsequence start position
ajintiendInputsequence end position
AjPSeqseqModifysequence
AjBool RETURNajTrue on success

Input
thys:(Input)USA
protein:(Input)True if protein
ibegin:(Input)sequence start position
iend:(Input)sequence end position
Input & Output
seq:(Modify)sequence
Returns
AjBool:ajTrue on success

Description

Returns a sequence given a USA

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajSeqGetFromUsa

Returns a sequence given a USA

Synopsis

Prototype
AjBool ajSeqGetFromUsa (
      const AjPStr thys,
      AjBool protein,
      AjPSeq seq
);

TypeNameRead/WriteDescription
const AjPStrthysInputUSA
AjBoolproteinInputTrue if protein
AjPSeqseqModifysequence
AjBool RETURNajTrue on success

Input
thys:(Input)USA
protein:(Input)True if protein
Input & Output
seq:(Modify)sequence
Returns
AjBool:ajTrue on success

Description

Returns a sequence given a USA

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajSeqsetGetFromUsa

Return a seqset given a usa

Synopsis

Prototype
AjBool ajSeqsetGetFromUsa (
      const AjPStr thys,
      AjPSeqset* seq
);

TypeNameRead/WriteDescription
const AjPStrthysInputusa
AjPSeqset*seqOutputseqset
AjBool RETURNajTrue on success

Input
thys:(Input)usa
Output
seq:(Output)seqset
Returns
AjBool:ajTrue on success

Description

Return a seqset given a usa

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajSeqReadExit

Cleans up sequence reading internal memory

Synopsis

Prototype
void ajSeqReadExit (
      void
);

TypeNameRead/WriteDescription
void RETURN

Returns
void:No return value

Description

Cleans up sequence reading internal memory

See Also

See other functions in this section

Availability

In release 6.4.0

Section: Internals

Functions to return internal values

Functions: ajSeqinTypeGetFields ajSeqinTypeGetQlinks ajSeqinTrace ajSeqaccessGetDb ajSeqaccessMethodGetQlinks ajSeqaccessMethodGetScope ajSeqaccessMethodTest ajSeqinformatTerm ajSeqinformatTest


Function ajSeqinTypeGetFields

Returns the listof known field names for ajSeqinRead

Synopsis

Prototype
const char* ajSeqinTypeGetFields (
      void
);

TypeNameRead/WriteDescription
const char* RETURNList of field names

Returns
const char*:List of field names

Description

Returns the listof known field names for ajSeqinRead

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajSeqinTypeGetQlinks

Returns the listof known query link operators for ajSeqRead

Synopsis

Prototype
const char* ajSeqinTypeGetQlinks (
      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 ajSeqRead

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajSeqinTrace

Debug calls to trace the data in a sequence input object.

Synopsis

Prototype
void ajSeqinTrace (
      const AjPSeqin thys
);

TypeNameRead/WriteDescription
const AjPSeqinthysInputSequence input object.
void RETURN

Input
thys:(Input)Sequence input object.
Returns
void:No return value

Description

Debug calls to trace the data in a sequence input object.

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajSeqaccessGetDb

returns the table in which sequence database access details are registered

Synopsis

Prototype
AjPTable ajSeqaccessGetDb (
      void
);

TypeNameRead/WriteDescription
AjPTable RETURNAccess functions hash table

Returns
AjPTable:Access functions hash table

Description

returns the table in which sequence database access details are registered

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajSeqaccessMethodGetQlinks

Tests for a named method for sequence reading and returns the known query link operators

Synopsis

Prototype
const char* ajSeqaccessMethodGetQlinks (
      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 sequence reading and returns the known query link operators

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajSeqaccessMethodGetScope

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

Synopsis

Prototype
ajuint ajSeqaccessMethodGetScope (
      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 sequence reading and returns the scope (entry, query or all).

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajSeqaccessMethodTest

Tests for a named method for sequence reading.

Synopsis

Prototype
AjBool ajSeqaccessMethodTest (
      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 sequence reading.

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajSeqinformatTerm

Tests whether a data input format termis known

Synopsis

Prototype
AjBool ajSeqinformatTerm (
      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 data input format termis known

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajSeqinformatTest

Tests whether a named sequence data input format is known

Synopsis

Prototype
AjBool ajSeqinformatTest (
      const AjPStr format
);

TypeNameRead/WriteDescription
const AjPStrformatInputFormat
AjBool RETURNajTrue if formats was accepted

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

Description

Tests whether a named sequence data input format is known

See Also

See other functions in this section

Availability

In release 6.4.0