ajassem.c

Datatypes:
AjPAssem Assembly data
AjPAssemRead Assembly read data
AjPAssemReadgroup Assembly read group data
AjEAssemPlatform Assembly platform
AjEAssemSortOrder Assembly sort order
none Miscellaneous functions


Datatype: AjPAssem

Function is for manipulating assembly data objects

Sections:
constructorsConstructors
Assem data destructorsDestructors
CastsCasts
assembly data modifiersModifiers


AjPAssem: constructors

Constructors

Functions:
ajAssemNewAssem data constructor


Function ajAssemNew

Assem data constructor

Prototype

AjPAssem ajAssemNew (
      void
);

TypeNameRead/WriteDescription
AjPAssem RETURNNew object

From EMBOSS 6.4.0


AjPAssem: Assem data destructors

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

Functions:
ajAssemDelAssem data destructor


Function ajAssemDel

Assem data destructor

Prototype

void ajAssemDel (
      AjPAssem* Passem
);

TypeNameRead/WriteDescription
AjPAssem*PassemDeleteAssem data object to delete
void RETURN

From EMBOSS 6.4.0


AjPAssem: Casts

Return values from an assembly data object

Functions:
ajAssemGetIdReturn the identifier
ajAssemGetQryCReturns the query string of an assembly data object. Because this is a pointer to the real internal string the caller must take care not to change the character string in any way. If the string is to be changed (case for example) then it must first be copied.
ajAssemGetQrySReturns the query string of an assembly data object. Because this is a pointer to the real internal string the caller must take care not to change the character string in any way. If the string is to be changed (case for example) then it must first be copied.
ajAssemGetSortorderCReturns sort-order name of the given assembly


Function ajAssemGetId

Return the identifier

Prototype

const AjPStr ajAssemGetId (
      const AjPAssem assem
);

TypeNameRead/WriteDescription
const AjPAssemassemInputAssembly
const AjPStr RETURNReturned id

From EMBOSS 6.5.0


Function ajAssemGetQryC

Returns the query string of an assembly data object. Because this is a pointer to the real internal string the caller must take care not to change the character string in any way. If the string is to be changed (case for example) then it must first be copied.

Prototype

const char* ajAssemGetQryC (
      const AjPAssem assem
);

TypeNameRead/WriteDescription
const AjPAssemassemInputAssem data object.
const char* RETURNQuery as a character string.

From EMBOSS 6.4.0


Function ajAssemGetQryS

Returns the query string of an assembly data object. Because this is a pointer to the real internal string the caller must take care not to change the character string in any way. If the string is to be changed (case for example) then it must first be copied.

Prototype

const AjPStr ajAssemGetQryS (
      const AjPAssem assem
);

TypeNameRead/WriteDescription
const AjPAssemassemInputAssem data object.
const AjPStr RETURNQuery as a string.

From EMBOSS 6.4.0


Function ajAssemGetSortorderC

Returns sort-order name of the given assembly

Prototype

const char* ajAssemGetSortorderC (
      const AjPAssem assem
);

TypeNameRead/WriteDescription
const AjPAssemassemInputassembly
const char* RETURNsort-order name

From EMBOSS 6.5.0


AjPAssem: assembly data modifiers

Assem data modifiers

Functions:
ajAssemClearResets all data for an assembly data object so that it can be reused.
ajAssemResetResets read data for an assembly data object so that it can be reused.
ajAssemSetContigattributesSet contig attributes uri, md5, species and assemblyid using the values provided in contigtags table.
ajAssemSetReadgroupsSet assembly readgroups using the values in readgrouptags table


Function ajAssemClear

Resets all data for an assembly data object so that it can be reused.

Prototype

void ajAssemClear (
      AjPAssem assem
);

TypeNameRead/WriteDescription
AjPAssemassemModifyassem data
void RETURN

From EMBOSS 6.4.0


Function ajAssemReset

Resets read data for an assembly data object so that it can be reused.

Prototype

void ajAssemReset (
      AjPAssem assem
);

TypeNameRead/WriteDescription
AjPAssemassemModifyassem data
void RETURN

From EMBOSS 6.5.0


Function ajAssemSetContigattributes

Set contig attributes uri, md5, species and assemblyid using the values provided in contigtags table.

Prototype

void ajAssemSetContigattributes (
      AjPAssem assem,
      const AjPTable tags
);

TypeNameRead/WriteDescription
AjPAssemassemModifyAssembly object
const AjPTabletagsInputTable of tables for contig tags. Main table have an entry for each contig. Sub-tables include tag values for a contig.
void RETURN

From EMBOSS 6.5.0


Function ajAssemSetReadgroups

Set assembly readgroups using the values in readgrouptags table

Prototype

void ajAssemSetReadgroups (
      AjPAssem assem,
      const AjPTable tags
);

TypeNameRead/WriteDescription
AjPAssemassemModifyAssembly object
const AjPTabletagsInputTable of tables for readgroup tags. Main table have an entry for each read-group. Sub-tables include tag values for a read-group.
void RETURN

From EMBOSS 6.5.0


Datatype: AjPAssemRead

Function is for manipulating assembly read objects

Sections:
Assembly read data destructorsDestructors
CastsCasts
assembly read data modifiersModifiers


AjPAssemRead: Assembly read data destructors

Destruction destroys all internal data structures and frees the memory allocated for the assembly read data object.

Functions:
ajAssemreadDelDelete assembly read/alignment records


Function ajAssemreadDel

Delete assembly read/alignment records

Prototype

void ajAssemreadDel (
      AjPAssemRead* Passemread
);

TypeNameRead/WriteDescription
AjPAssemRead*PassemreadDeleteAssembly read object to delete
void RETURN

From EMBOSS 6.5.0


AjPAssemRead: Casts

Return values from an assembly read data object

Functions:
ajAssemreadGetAlignmentend1-based inclusive rightmost position of the clipped sequence, or 0 if read unmapped
ajAssemreadGetAlignmentstartReturn alignment start (1-based)
ajAssemreadGetFlagFirstofpairReturn whether the read is the first read in a pair
ajAssemreadGetFlagNegativestrandReturn strand of the query (false for forward; true for reverse strand)
ajAssemreadGetFlagPairedReturn whether the read is paired in sequencing, no matter whether it is mapped in a pair
ajAssemreadGetFlagUnmappedReturn whether the read is unmapped


Function ajAssemreadGetAlignmentend

1-based inclusive rightmost position of the clipped sequence, or 0 if read unmapped

Prototype

ajint ajAssemreadGetAlignmentend (
      const AjPAssemRead r
);

TypeNameRead/WriteDescription
const AjPAssemReadrInputread
ajint RETURNend position of the alignment on the reference sequence

From EMBOSS 6.5.0


Function ajAssemreadGetAlignmentstart

Return alignment start (1-based)

Prototype

ajint ajAssemreadGetAlignmentstart (
      const AjPAssemRead r
);

TypeNameRead/WriteDescription
const AjPAssemReadrInputread
ajint RETURNstart position of the alignment on the reference sequence

From EMBOSS 6.5.0


Function ajAssemreadGetFlagFirstofpair

Return whether the read is the first read in a pair

Prototype

AjBool ajAssemreadGetFlagFirstofpair (
      const AjPAssemRead r
);

TypeNameRead/WriteDescription
const AjPAssemReadrInputread
AjBool RETURNtrue if the read is the first read in a pair

From EMBOSS 6.5.0


Function ajAssemreadGetFlagNegativestrand

Return strand of the query (false for forward; true for reverse strand)

Prototype

AjBool ajAssemreadGetFlagNegativestrand (
      const AjPAssemRead r
);

TypeNameRead/WriteDescription
const AjPAssemReadrInputread
AjBool RETURNtrue if the read is reverse strand

From EMBOSS 6.5.0


Function ajAssemreadGetFlagPaired

Return whether the read is paired in sequencing, no matter whether it is mapped in a pair

Prototype

AjBool ajAssemreadGetFlagPaired (
      const AjPAssemRead r
);

TypeNameRead/WriteDescription
const AjPAssemReadrInputread
AjBool RETURNtrue if the read is paired

From EMBOSS 6.5.0


Function ajAssemreadGetFlagUnmapped

Return whether the read is unmapped

Prototype

AjBool ajAssemreadGetFlagUnmapped (
      const AjPAssemRead r
);

TypeNameRead/WriteDescription
const AjPAssemReadrInputread
AjBool RETURNtrue if the read is unmapped

From EMBOSS 6.5.0


AjPAssemRead: assembly read data modifiers

Assem data modifiers

Functions:
ajAssemreadSetAlignblocksReturns blocks of the read sequence that have been aligned directly to the reference sequence. Clipped portions of the read and inserted and deleted bases (vs. the reference) are not represented in the alignment blocks.


Function ajAssemreadSetAlignblocks

Returns blocks of the read sequence that have been aligned directly to the reference sequence. Clipped portions of the read and inserted and deleted bases (vs. the reference) are not represented in the alignment blocks.

Prototype

AjPList ajAssemreadSetAlignblocks (
      AjPAssemRead r
);

TypeNameRead/WriteDescription
AjPAssemReadrModifyread/alignment 8
AjPList RETURNlist of alignment blocks

From EMBOSS 6.5.0


Datatype: AjPAssemReadgroup

Function is for manipulating assembly data objects

Sections:
Assembly read group functionsMiscellaneous


AjPAssemReadgroup: Assembly read group functions

Function is for manipulating read group data

Functions:
ajAssemreadgroupGetPlatformnameReturns platform name of the given read-group


Function ajAssemreadgroupGetPlatformname

Returns platform name of the given read-group

Prototype

const char* ajAssemreadgroupGetPlatformname (
      const AjPAssemReadgroup rg
);

TypeNameRead/WriteDescription
const AjPAssemReadgrouprgInputread group
const char* RETURNplatform name

From EMBOSS 6.5.0


Datatype: AjEAssemPlatform

Function is for manipulating assembly platform enumerations

Sections:
Assembly platform functionsMiscellaneous


AjEAssemPlatform: Assembly platform functions

Function is for manipulating assembly platform enumerations

Functions:
ajAssemplatformGetTypeReturns platform type enumeration for the given platform


Function ajAssemplatformGetType

Returns platform type enumeration for the given platform

Prototype

AjEAssemPlatform ajAssemplatformGetType (
      const char* name
);

TypeNameRead/WriteDescription
const char*nameInputplatform name
AjEAssemPlatform RETURNplatform type

From EMBOSS 6.5.0


Datatype: AjEAssemSortOrder

Function is for manipulating assembly sort order enumerations

Sections:
Assembly sort order functionsMiscellaneous


AjEAssemSortOrder: Assembly sort order functions

Function is for manipulating assembly sort-order enumerations

Functions:
ajAssemsortorderGetTypeReturns sort-order type for the given sort-order-name


Function ajAssemsortorderGetType

Returns sort-order type for the given sort-order-name

Prototype

AjEAssemSortOrder ajAssemsortorderGetType (
      const char* name
);

TypeNameRead/WriteDescription
const char*nameInputsort order name
AjEAssemSortOrder RETURNsort order type

From EMBOSS 6.5.0


Datatype: none

Functions to initialise and clean up internals

Sections:
exitMiscellaneous


Section: exit

Functions called on exit from the program by ajExit to do any necessary cleanup and to report internal statistics to the debug file

Functions:
ajAssemExitCleans up assembly processing internal memory


Function ajAssemExit

Cleans up assembly processing internal memory

Prototype

void ajAssemExit (
      void
);

TypeNameRead/WriteDescription
void RETURN

From EMBOSS 6.4.0