AnantharamanLab / METABOLIC

A scalable high-throughput metabolic and biogeochemical functional trait profiler
173 stars 43 forks source link

Perl issue with test run and installation #152

Open Breakcontinue2 opened 1 year ago

Breakcontinue2 commented 1 year ago

Hi, I've recently installed METABOLIC using mamba in conda env according to the instructions. When I tried running the command with the test data, I got some errors that I assume are perl-related.

The output and errors/warnings are as follows.

[2023-06-22 12:52:45] The Prodigal annotation is running... Can't locate Bio/Perl.pm in @INC (you may need to install the Bio::Perl module) (@INC contains: /home/fly/miniconda3/envs/METABOLIC/lib/perl5/5.32/site_perl /home/fly/miniconda3/envs/METABOLIC/lib/perl5/site_perl /home/fly/miniconda3/envs/METABOLIC/lib/perl5/5.32/vendor_perl /home/fly/miniconda3/envs/METABOLIC/lib/perl5/vendor_perl /home/fly/miniconda3/envs/METABOLIC/lib/perl5/5.32/core_perl /home/fly/miniconda3/envs/METABOLIC/lib/perl5/core_perl .) at /home/fly/miniconda3/envs/METABOLIC/metabolic_running_folder/METABOLIC/Accessory_scripts/gff2fasta_mdf.pl line 41.

Could you help me fix the issue and let me know if you need any additional information. Thanks in advance!

ChaoLab commented 1 year ago

Hi, It seems that you need to install Bio::Perl module within the conda environment. Here is an example: conda activate your_environment_name # Get into your conda environment conda install -c conda-forge perl-app-cpanminus # Make sure you have cpanm installed cpanm Bio::Perl # Use cpanm to install Bio::Perl module