| 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: open a bunch of windows |
|---|
| 13 | my $start_weblinks = 0; |
|---|
| 14 | |
|---|
| 15 | BIO::remote_action($gb_main,"ARB_NT","save_all_as"); |
|---|
| 16 | BIO::remote_action($gb_main,"ARB_NT","optimize_db"); |
|---|
| 17 | BIO::remote_action($gb_main,"ARB_NT","import_seq"); |
|---|
| 18 | BIO::remote_action($gb_main,'ARB_NT','Import sequences using Readseq (slow) ...'); |
|---|
| 19 | BIO::remote_action($gb_main,"ARB_NT","export_to_ARB"); |
|---|
| 20 | BIO::remote_action($gb_main,"ARB_NT","export_seqs"); |
|---|
| 21 | BIO::remote_action($gb_main,"ARB_NT","export_nds"); |
|---|
| 22 | BIO::remote_action($gb_main,'ARB_NT','Export sequences to foreign format (Readseq) ...'); |
|---|
| 23 | BIO::remote_action($gb_main,"ARB_NT","print_tree"); |
|---|
| 24 | if ($start_weblinks!=0) { |
|---|
| 25 | BIO::remote_action($gb_main,'ARB_NT','mailing_list'); |
|---|
| 26 | BIO::remote_action($gb_main,"ARB_NT","bug_report"); |
|---|
| 27 | } |
|---|
| 28 | BIO::remote_action($gb_main,"ARB_NT","version_info"); |
|---|
| 29 | BIO::remote_action($gb_main,"ARB_NT","HELP/CLOSE"); |
|---|
| 30 | ARB::close($gb_main); |
|---|