1 | #!/usr/bin/perl -w |
---|
2 | use lib "$ENV{'ARBHOME'}/lib/"; |
---|
3 | use ARB; |
---|
4 | |
---|
5 | $gb_main = ARB::open(":","r"); |
---|
6 | if (! $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 |
---|
16 | BIO::remote_action($gb_main,'ARB_NT','ARB_NT/SEARCH'); |
---|
17 | BIO::remote_awar($gb_main,'ARB_NT','tmp/dbquery_spec/ere','0'); |
---|
18 | BIO::remote_awar($gb_main,'ARB_NT','tmp/dbquery_spec/by','1'); |
---|
19 | BIO::remote_awar($gb_main,'ARB_NT','tmp/dbquery_spec/query_0','a*'); |
---|
20 | BIO::remote_awar($gb_main,'ARB_NT','tmp/dbquery_spec/key_0','name'); |
---|
21 | BIO::remote_action($gb_main,'ARB_NT','SPECIES_QUERY/SEARCH_spec'); |
---|
22 | BIO::remote_action($gb_main,'ARB_NT','SPECIES_QUERY/MARK_LISTED_UNMARK_REST'); |
---|
23 | BIO::remote_action($gb_main,'ARB_NT','SPECIES_QUERY/CLOSE'); |
---|
24 | # recording stopped @ Wed Sep 12 14:01:51 2018 |
---|
25 | ARB::close($gb_main); |
---|