source: trunk/lib/macros/demo__mark_species_named_a.amc

Last change on this file was 17364, checked in by westram, 6 years ago
  • updated example macros in ARBHOME/lib/macros
    • fixed broken identifiers
    • deleted useless ones (replamb+test)
    • renamed rest (prefix demo__)
    • added comments
  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 901 bytes
Line 
1#!/usr/bin/perl -w
2use lib "$ENV{'ARBHOME'}/lib/";
3use ARB;
4
5$gb_main = ARB::open(":","r");
6if (! $gb_main ) {
7    $error = ARB::await_error();
8    print ("Error: $error\n");
9    exit 0;
10}
11
12# example macro:
13# marks all species with 'name' starting with 'a'
14
15# recording resumed @ Wed Sep 12 13:57:56 2018
16BIO::remote_action($gb_main,'ARB_NT','ARB_NT/SEARCH');
17BIO::remote_awar($gb_main,'ARB_NT','tmp/dbquery_spec/ere','0');
18BIO::remote_awar($gb_main,'ARB_NT','tmp/dbquery_spec/by','1');
19BIO::remote_awar($gb_main,'ARB_NT','tmp/dbquery_spec/query_0','a*');
20BIO::remote_awar($gb_main,'ARB_NT','tmp/dbquery_spec/key_0','name');
21BIO::remote_action($gb_main,'ARB_NT','SPECIES_QUERY/SEARCH_spec');
22BIO::remote_action($gb_main,'ARB_NT','SPECIES_QUERY/MARK_LISTED_UNMARK_REST');
23BIO::remote_action($gb_main,'ARB_NT','SPECIES_QUERY/CLOSE');
24# recording stopped @ Wed Sep 12 14:01:51 2018
25ARB::close($gb_main);
Note: See TracBrowser for help on using the repository browser.