>>>The links to TAX_UP and TAX_DOWN are fun in their way - but can I get
>*all* ancestors or descendants directly rather than one at a time?
>>getz -e '[taxonomy-taxon:caenorhabditis elegans] > tax_up > tax_up \
> > tax_up > tax_up > tax_up > tax_up > tax_up > tax_up > tax_up \
> > tax_up > tax_up > tax_up > tax_up > tax_up > tax_up > tax_up \
> > tax_up'
yes you can - the solution is
getz -e '[taxonomy-taxon:caenorhabditis elegans] >^ tax_up'
the >^ is a new operator and performs the link to tax_up recursively until
there are no more links available. This also works the other way round
getz -e '[taxonomy-taxon:nematoda]>^tax_dn'
gives you the entire subtree, including 'nematoda' (the ^ after the link
should be reminiscent of
a (sub) tree)
it is also possible to get only the leaves in a subtree defined by a query
getz -e '[taxonomy-taxon:nematoda]>_ tax_dn
Btw, these two link operators are even documented in the chapter about the
SRS query language
regards
thure
>1
>0
>no rank
>1
>root
>>--
>----------------------------------------------------------------------
>Peter Rice | Informatics Division, The Sanger Centre,
>E-mail: pmr at sanger.ac.uk | Wellcome Trust Genome Campus,
>Tel: (44) 1223 494967 | Hinxton, Cambridge, CB10 1SA, England
>Fax: (44) 1223 494919 | URL: http://www.sanger.ac.uk/Users/pmr/