# List installed banks

*BeeDeeM* comes with an additional tool aims at listing installed banks.

This tool also helps you to locate:

* banks that are available for use with BLAST software
* banks containg annotations

The tool is only available from the command line and is called:

* bdm info -h

*Note:* during script execution, there is nothing displayed on the terminal whether something goes OK or wrong. However, *BeeDeeM* logs all its work in a dedicated log file located in ${workingDir}. Refer to [Directory structure](https://pgdurand.gitbook.io/beedeem/installation/directory_structure) for more information.

## Command-line use

Command line takes no arguments. Simply use:

```
bdm info -d all -f txt
```

The result is directly dumped in standard output, such as:

```
BeeDeeM - 5.0.0

Configuration:

  Install path           : /opt/beedeem/
  Master configuration   : /opt/conf/dbms.config
  Log path               : /var/log/
  Work path              : /tmp/
  Bank configuration file: /biobase/dbmirror.config
  Bank repository path   : /biobase/
  Bank repository size   : 361,67 Mb

Installed banks
 - Protein banks: 1
      * SwissProt_human
        Description: Human subset of UniprotKB/SwissProt.
        BLAST+ use: -db /biobase/p/SwissProt_human/current/SwissProt_human/SwissProt_humanM
        Annotated bank: true
        Size (sequences): 20,168
        Size on disk: 361,67 Mb
        Install date: 2017-03-12, 17:55

 - Nucleotide banks: 0

 - Biological classification banks: 0
```

The 'info' command accepts the following optional arguments:

```
-d <type-of-repository> -f <format> -u <username>
```

where:

* "type-of-repository" is one of: n, p, b, all. This allows you to list nucleotide, protein, biological calssifications or all banks, respectively. Default is: all.
* "format" is one of: txt, html, galaxy. Default is: txt.

You can control `bdm info` tool with some environment variables as stated [in this section](https://pgdurand.gitbook.io/beedeem/getting-started/beedeem-configuration).&#x20;

## Locate your BLAST banks

Using that utility tool, you can easily identify banks that are available for BLAST. If you have a closer look at the above bank list, you will see this line:

```
BLAST+ use: -db /biobase/p/SwissProt_human/current/SwissProt_human/SwissProt_humanM
```

This is the "-db" argument you can use with BLAST+ software to run a BLAST job against that bank.

## Locate banks to annotate your BLAST results

In a same way, the above output displays that line:

```
Annotated bank: true
```

Which means that the "SwissProt\_human" contains annotations: features and biological classifications. So, that bank can be used with the [Annotate tool](https://pgdurand.gitbook.io/beedeem/utils/cmdline-annotate).

## Get loc files for Galaxy

You can easily enable Galaxy web platform to use banks installed by BeeDeeM by creating loc files as follows:

```
# dump nucleotide banks into appropriate loc file
bdm info -f galaxy -d n > blastdb_n.loc

# do the same for protein banks
bdm info -f galaxy -d p > blastdb_p.loc
```

Such files contains list of banks ready to be used by NCBI BLAST Galaxy wrappers.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://pgdurand.gitbook.io/beedeem/utils/list-banks.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
