Darwin Help

Back to Index

ID

Class ID - Data structure for storing IDs of the database DB

Calling Sequence  ID(id)
Parameters
NameTypeDescription

id {list,string,structure}ID(s) of Entries in the database DB

 PatEntry, Match or Entry data structure
Return Type  ID
Methods Entry, Sequence
Synopsis ID is a data structure which holds database identification tags (IDs) contained in the and tags in a Darwin formatted database. IDs can be used as arguments to other functions, e.g. Entry, Sequence, to indicate that the Entry or sequence desired is the one with the given ID. ID will attempt to convert its arguments when they are other entry descriptions to IDs.
Examples
> DB := ReadDb('/home/darwin/DB/SwissProt.Z'):;
Peptide file(/home/darwin/DB/SP45.0/SwissProt45.0(169638448), 163235
 entries, 59631787 aminoacids)
> id := ID('100K_RAT');
id := ID(100K_RAT)
> Entry(id);

> Sequence(id);

> ID(Entry(2));
ID(108_LYCES)
> ID(PatEntry(10000..10002));
ID(SYP1_YEAST,SYP_CHLPN,SYQ_DEIRA)
> ID(Sequence(Entry(1)));
ID(104K_THEPA)


See also AC,   Entry,   Match,   PatEntry,   SearchAC,   SearchID,   Sequence,   SP_Species,   SPCommonName,   Species_Entry