Installation#
We support different ways to install dbcan, including:
Requirements#
A Posix-compliant operating system, e.g.
Linux
orMacOS
.A
Python
3.6 or later environment (you can useconda
to create it).When using
Conda
orPyPI
to install dbcan, you also need to prepare thedatabases
used by dbcan seperately (See Database Installation Command).
Installing with Conda#
If you haven’t already installed conda
, you need to install a conda
environment. Conda
is available through the Anaconda
or Miniconda. Then, you can create a new conda
environment (optional but recommended) using the command:
conda create --name dbcan python=3.8
If you already have a conda
environment, you can skip the step above.
To install the dbcan package, use the conda install
command:
conda install dbcan -c conda-forge -c bioconda
Build database#
You can build database via this command:
dbcan_build --cpus 8 --db-dir db --clean
--cpu
indicates count of cpu you can use. Try as many as possible for fast building.--db-dir
indicates database folder path. Default isdb
on your current database
3. --clean
indicates clean the folder indicated by --db-dir
.
You can remove this parameter if you don’t want to clean, but we recommend you add this to keep
away from index contamination.
Installing SignalP (Optional)#
SignalP
is optional and not essential for the core functionality of our software. Users requiring its specific features can integrate it as follows:Visit the SignalP website.
Submit a download request.
Post-download, add
SignalP
to your system’s environmental variables to make it executable.
For installation assistance, refer to the SignalP Peptide Prediction Integration.
Installing with Docker#
To use dbcan via Docker, please follow these steps:
Install
Docker
on your system (e.g. Linux, MacOS);Pull the image haidyi/run_dbcan from Docker Hub;
Run the
run_dbcan
tool via Docker:docker run -it haidyi/run_dbcan:latest <input_file> [args] --out_dir <output_dir>
Note
To use your own local files as input when using Docker, make sure the local files are
mounted
and visible to your container.
Check Installation#
After installation, you can check if dbcan is successfully installed by running:
run_dbcan -h
If it shows all the help information, congratulations! You are ready to annotate your own proteins right now.