Open zl945 opened 5 years ago
MaxBin2 requires a few Perl modules to be installed, which should be handled by conda. It looks like the Perl libraries in your system are imported by default, however. Metawrap tried to explicitly set where to looks for these libraries - /home/Lixiefei/miniconda2/envs/metawrap/lib/perl5/site_perl/5.22.0
. Can you check if the conda Perl libraries are in this path or somewhere else?
Thanks, i changed the path of the conda Perl libraries. Now ,it works.
Out of curiosity, what did you change them to?
I am so sorry to reply to you now. Follow you suggestion, i checked the Perl modules and found the path /home/Lixiefei/miniconda2/envs/metawrap/lib/perl5/site_perl/5.22.0. Then i I linked this path to the conda manually.
But how did you link them?
I'm now having the same issue- but am not sure how to fix it.
I found the path /users/PAS1331/osu7930/miniconda3/envs/metawrap-env/lib/perl5/site_perl/5.22.0
but what do i do now??
here's a copy of the error code below...
processing ALL_READS.bam depth file...
Can't locate HTTP/Status.pm in @INC (you may need to install the HTTP::Status module) (@INC contains: /users/PAS1331/osu7930/miniconda3/envs/metawrap-env/lib/site_perl/5.26.2/x86_64-linux-thread-multi /users/PAS1331/osu7930/miniconda3/envs/metawrap-env/lib/site_perl/5.26.2 /users/PAS1331/osu7930/miniconda3/envs/metawrap-env/lib/5.26.2/x86_64-linux-thread-multi /users/PAS1331/osu7930/miniconda3/envs/metawrap-env/lib/5.26.2 .) at /users/PAS1331/osu7930/miniconda3/envs/metawrap-env/lib/site_perl/5.26.2/LWP/Simple.pm line 14.
BEGIN failed--compilation aborted at /users/PAS1331/osu7930/miniconda3/envs/metawrap-env/lib/site_perl/5.26.2/LWP/Simple.pm line 14.
Compilation failed in require at /users/PAS1331/osu7930/miniconda3/envs/metawrap-env/bin/run_MaxBin.pl line 4.
BEGIN failed--compilation aborted at /users/PAS1331/osu7930/miniconda3/envs/metawrap-env/bin/run_MaxBin.pl line 4.
------------------------------------------------------------------------------------------------------------------------
----- looks like our default perl libraries are not the conda ones. Manually setting perl5 -----
----- library directory -----
------------------------------------------------------------------------------------------------------------------------
metawrap path: /users/PAS1331/osu7930/miniconda3/envs/metawrap-env/bin/metawrap
Will use perl5 libraries located in /users/PAS1331/osu7930/miniconda3/envs/metawrap-env/lib/perl5/site_perl/5.22.0 - hopefully they are there...
------------------------------------------------------------------------------------------------------------------------
----- Starting binning with MaxBin2... -----
------------------------------------------------------------------------------------------------------------------------
Can't locate HTTP/Status.pm in @INC (you may need to install the HTTP::Status module) (@INC contains: /users/PAS1331/osu7930/miniconda3/envs/metawrap-env/lib/perl5/site_perl/5.22.0/x86_64-linux-thread-multi /users/PAS1331/osu7930/miniconda3/envs/metawrap-env/lib/perl5/site_perl/5.22.0 /users/PAS1331/osu7930/miniconda3/envs/metawrap-env/lib/site_perl/5.26.2/x86_64-linux-thread-multi /users/PAS1331/osu7930/miniconda3/envs/metawrap-env/lib/site_perl/5.26.2 /users/PAS1331/osu7930/miniconda3/envs/metawrap-env/lib/5.26.2/x86_64-linux-thread-multi /users/PAS1331/osu7930/miniconda3/envs/metawrap-env/lib/5.26.2 .) at /users/PAS1331/osu7930/miniconda3/envs/metawrap-env/lib/site_perl/5.26.2/LWP/Simple.pm line 14.
BEGIN failed--compilation aborted at /users/PAS1331/osu7930/miniconda3/envs/metawrap-env/lib/site_perl/5.26.2/LWP/Simple.pm line 14.
Compilation failed in require at /users/PAS1331/osu7930/miniconda3/envs/metawrap-env/bin/run_MaxBin.pl line 4.
BEGIN failed--compilation aborted at /users/PAS1331/osu7930/miniconda3/envs/metawrap-env/bin/run_MaxBin.pl line 4.
************************************************************************************************************************
***** Something went wrong with running MaxBin2. Exiting.
Try linking like this: export PERL5LIB=/users/PAS1331/osu7930/miniconda3/envs/metawrap-env/lib/perl5/site_perl/5.22.0
before trying to run maxbin again (you dont need to run metawrap to test it btw). Let me know if it works.
I tried including that in the bash script before the command but didn't see any difference in the output :/ I will skip using maxbin and just use metabat and concoct for now, I don't really need maxbin, unless this error will affect other processes down the line?
Thank you for your prompt assistance! Really grateful for this program.
No, it should only affect the binning and annotation modules.
Now I am having the same issue: Something went wrong with running MaxBin2. Exiting. I tried this: export PERL5LIB=/home/Pipeline/miniconda3/envs/metawrap-env/lib/perl5/site_perl/5.22.0, but it doesn't work.
I don't necessarily have specific advice because Perl libraries have odd properties on different systems. However, I would advise to solve the problem (MaxBin2 not working) rather than the symptom (metaWRAP failing). Look around and try to get the command run_MaxBin.pl -h
to run on your system. The export PERL5LIB
advice is how I was able to do it on my system.
I tried run_MaxBin.pl -h, The output is as follows:
$run_MaxBin.pl -h
readline() on closed filehandle FILE at /home/Pipeline/Software_NEW/miniconda3/envs/metawrap-env/bin/run_MaxBin.pl line 1336.
MaxBin 2.2.4
Unrecognized token [-h]
MaxBin - a metagenomics binning software.
Usage:
run_MaxBin.pl
-contig (contig file)
-out (output file)
(Input reads and abundance information)
[-reads (reads file) -reads2 (readsfile) -reads3 (readsfile) -reads4 ... ]
[-abund (abundance file) -abund2 (abundfile) -abund3 (abundfile) -abund4 ... ]
(You can also input lists consisting of reads and abundance files)
[-reads_list (list of reads files)]
[-abund_list (list of abundance files)]
(Other parameters)
[-min_contig_length (minimum contig length. Default 1000)]
[-max_iteration (maximum Expectation-Maximization algorithm iteration number. Default 50)]
[-thread (thread num; default 1)]
[-prob_threshold (probability threshold for EM final classification. Default 0.9)]
[-plotmarker]
[-markerset (marker gene sets, 107 (default) or 40. See README for more information.)]
(for debug purpose)
[-version] [-v] (print version number)
[-verbose]
[-preserve_intermediate]
Please specify either -reads or -abund information.
You can input multiple reads and/or abundance files at the same time.
Please read README file for more details.
Thats odd. What version of metawrap are you using, and how did you install it?
Version1.1.1, I installed it by conda.
That's probably your problem. Update!
is update metaWRAP to latest version?
input:
metawrap binning -o INITIAL_BINNING4 -t 8 -m 200 -a ASSEMBLY/final_assembly.fasta --maxbin2 cleandata/Sz_1.fastq cleandata/Sz_2.fastq
metaWRAP v=1.0.2 installed by conda
error:
Result file: