ajdas.c


Function ajDasServerNew

Returns a new DasServer object

Prototype

AjPDasServer ajDasServerNew (
      void
);

TypeNameRead/WriteDescription
AjPDasServer RETURNDAS server object

From EMBOSS 6.4.0


Function ajDasServerDel

Delete DASserver object

Prototype

void ajDasServerDel (
      AjPDasServer* thys
);

TypeNameRead/WriteDescription
AjPDasServer*thysModifyDASserver object
void RETURN

From EMBOSS 6.4.0


Function ajDasSegmentDel

Delete DAS segment objects returned by entry_points queries

Prototype

void ajDasSegmentDel (
      AjPDasSegment* Psegment
);

TypeNameRead/WriteDescription
AjPDasSegment*PsegmentModifyDAS segment object
void RETURN

From EMBOSS 6.4.0


Function ajDasParseRegistry

Parses XML list of DAS sources, either coming from dasregistry.org or from individual DAS servers supporting DAS 'sources' command

Prototype

AjBool ajDasParseRegistry (
      AjPFilebuff buff,
      AjPList sources
);

TypeNameRead/WriteDescription
AjPFilebuffbuffModifyXML input stream
AjPListsourcesModifypointer to the data structure for storing parser results of DAS/XML 'source' objects
AjBool RETURNTrue on success

From EMBOSS 6.4.0


Function ajDasParseEntrypoints

Parses XML list of DAS entry-points, either coming from dasregistry.org or from individual DAS servers supporting DAS 'entry_points' command

Prototype

AjBool ajDasParseEntrypoints (
      AjPFilebuff buff,
      AjPList segments
);

TypeNameRead/WriteDescription
AjPFilebuffbuffModifyXML input stream
AjPListsegmentsModifypointer to the data structure for storing parser results of DAS/XML 'segment' objects
AjBool RETURNTrue on success

From EMBOSS 6.4.0


Function ajDasServerSethostS

Set the DAS server host name

Prototype

AjBool ajDasServerSethostS (
      AjPDasServer server,
      const AjPStr host
);

TypeNameRead/WriteDescription
AjPDasServerserverModifyDASserver object
const AjPStrhostInputDAS server host name
AjBool RETURNTrue on success

From EMBOSS 6.4.0


Function ajDasServerSetpathS

Set the DAS server URL path

Prototype

AjBool ajDasServerSetpathS (
      AjPDasServer server,
      const AjPStr path
);

TypeNameRead/WriteDescription
AjPDasServerserverModifyDASserver object
const AjPStrpathInputDAS server URL path
AjBool RETURNTrue on success

From EMBOSS 6.4.0


Function ajDasServerSetport

Set the DAS server port

Prototype

AjBool ajDasServerSetport (
      AjPDasServer server,
      ajuint port
);

TypeNameRead/WriteDescription
AjPDasServerserverModifyDASserver object
ajuintportInputDAS server port
AjBool RETURNTrue on success

From EMBOSS 6.4.0


Function ajDasServerGetSources

Makes an http request for getting either list of all DAS sources or a particular DAS source on a given DAS server. Http response is parsed and results are stored in server object's 'sources' attribute

Prototype

void ajDasServerGetSources (
      AjPDasServer server,
      const AjPStr cmd
);

TypeNameRead/WriteDescription
AjPDasServerserverModifyDAS server object
const AjPStrcmdInputDAS 'sources' command, queries either all DAS sources or a particular DAS source
void RETURN

From EMBOSS 6.4.0


Function ajDasGetSequenceQueryURI

Given a DAS server URL, returns sequence query URI for the DAS source specified in user query.

Prototype

AjPStr ajDasGetSequenceQueryURI (
      const AjPQuery qry,
      const AjPStr sourceURIorTitle
);

TypeNameRead/WriteDescription
const AjPQueryqryInputsequence query object
const AjPStrsourceURIorTitleInputDAS source URI or title specified in current query
AjPStr RETURNsequence-query URI, null if not found

From EMBOSS 6.4.0


Function ajDasSourceGetDBname

Returns an EMBOSS DB name for a given DAS source

Prototype

AjPStr ajDasSourceGetDBname (
      const AjPDasSource source,
      AjBool titleAndURI
);

TypeNameRead/WriteDescription
const AjPDasSourcesourceInputDAS source object
AjBooltitleAndURIInputInclude URI in name
AjPStr RETURNDB name

From EMBOSS 6.4.0


Function ajDasPrintCachefile

Prints DB definition for the specified DAS server object

Prototype

void ajDasPrintCachefile (
      const AjPDasServer server,
      AjPFile cachef
);

TypeNameRead/WriteDescription
const AjPDasServerserverInputDAS server object
AjPFilecachefOutputserver cachefile with DB definitions
void RETURN

From EMBOSS 6.4.0


Function ajDasTestrangeParse

Parses a DAS test_range attribute and returns sequence identifier, and 'begin' and 'end' positions if any.

Prototype

AjPStr ajDasTestrangeParse (
      const AjPStr testrange,
      AjPStr* id,
      ajint* ibegin,
      ajint* iend
);

TypeNameRead/WriteDescription
const AjPStrtestrangeInputDAS test_range string
AjPStr*idOutputsequence identifier
ajint*ibeginOutputsequence begin position
ajint*iendOutputsequence end position
AjPStr RETURNreturns the example query in EMBOSS USA syntax

From EMBOSS 6.4.0