KennthShang / PhaBOX

Local version of the virus identification and analysis web server (tool set)
https://phage.ee.cityu.edu.hk/
Academic Free License v3.0
36 stars 5 forks source link

Fail in runing votu task #45

Open ShangLiii opened 4 hours ago

ShangLiii commented 4 hours ago

Hi, I am trying to run votu and something is wrong. Here is the commend I used: phabox2 --task votu --dbdir /data2/lishang/phabox_db_v2/ \

    --outpth  $Prjdir/Phabox2 \
    --contigs $Prjdir/all_virus.fna \
    --threads 112 --proteins $Prjdir/all_virus.faa --len 1

PhaBOX2 is running with: 112 threads! Running program: vOTU groupping filtering the length of contigs... [1/5] calling genes with prodigal... Command 'makeblastdb -in /data2/lishang/Results/Phabox2/filtered_contigs.fa -dbtype nucl -parse_seqids -ou t /data2/lishang/Results/Phabox2/midfolder//selfdb > /dev/null 2>&1' failed with exit code 1

Can you please help me? Thanks!

KennthShang commented 4 hours ago

Hi there,

please make sure you have follow the commands below and install the packages correctly

conda create -n phabox2 phabox=2.1.5 -c conda-forge -c bioconda -y
conda activate phabox2

Then, please try conda list to check the packages blow are install correctly:

diamond=0.9.14 
blast=2.16.0 
mcl 
fasttree=2.1.11 
kcounter=0.1.1 
mafft=7.525

If not, you can reinstall them:

conda install diamond=0.9.14 blast=2.16.0 mcl fasttree=2.1.11 kcounter=0.1.1 mafft=7.525

If you cannot run all the above-mentioned commands successfully, I suggest installing phabox in a primitive ways:

# install dependencies
conda create --name phabox2 python=3.10
conda activate phabox2
conda config --add channels bioconda
conda install diamond=0.9.14 blast=2.16.0 mcl fasttree=2.1.11 kcounter=0.1.1 mafft=7.525
conda install numpy=1.26.4 pandas=2.2.3 networkx=3.4.2 seaborn-base=0.13.2 biopython=1.84 tqdm=4.66.5 scipy=1.14.1
conda install datasets transformers pytorch triton accelerate prodigal-gv

# install phabox binary 
git clone https://github.com/KennthShang/PhaBOX.git
cd PhaBOX
python  -m pip install . -vv
cd ..
# you can remove the PhaBOX folder once it is installed
rm -rf PhaBOX

# test
phabox2 --help

# Do not forget to download the database using wget (or go to the release page)
wget https://github.com/KennthShang/PhaBOX/releases/download/v2/phabox_db_v2.zip
unzip phabox_db_v2.zip > /dev/null

Best, Jiayu