I am trying to run QUAST to evaluate a spades assembly. Most of the analysis works and several plots are being created but then the tool crashes because it seems to be trying to write to the folder where the software is installed:
Running Contig analyzer...
Compiling Minimap2 (details are in /XXX/quast-5.0.2/quast_libs/minimap2/make.log and make.err)
[Errno 30] Read-only file system: '/XXX/quast-5.0.2/quast_libs/minimap2/make.log'
which is where the software is installed:
$ which quast.py
/XXX/quast-5.0.2/quast.py
I have to install the software on a read-only file system to use it on our cluster. Is there any way to tell quast to write those files somewhere else? I can't find anything in the manuals. Thanks!
It seems to be compiling minimap2, which seems strange for it to do at run time.
Do you already have
minimap
available within your$PATH
? IfQuast
can find it automatically, it might circumvent the need to do that step at all (just a guess at this stage though).According to the manual QUAST needs following. Don't see
minimap2
mentioned unless they include it in the source. In that case OP has not installed the software properly.I guess quast script is looking for create_minimap_output_dir function. But then this function is imported from quast_libs.ca_utils.misc (from https://github.com/ablab/quast/blob/master/quast_libs/contigs_analyzer.py).
(from: http://cab.spbu.ru/files/quast/latest-docs/manual.html)
However, Almost all tools listed above are built in into the QUAST package (copy/pasted). If those are not installed by any chance, install them and run quast.
And yet: http://quast.sourceforge.net/docs/manual.html#sec2.3
thanks but that is not the problem. I have provided a data output directory and the plots etc are being written to it. The problem is that quast is also trying to write some make files to a subdir of the directory where it is installed.
Try installing minimap first..then run quast. Mention the code and output directory in OP.
ah, ok, yes, that might be the solution. Sorry, I didn't know minimap was a separate piece of software and didn't see it mentioned in the installation manual. I will look for it now. Thanks!
That was a guess from the log you posted...it may not be the solution. Try also having look at the tools listed here: https://github.com/ablab/quast/tree/master/quast_libs and check if they are installed on your system @ tospo
As several people have pointed out, it appears that my quast installation (which is simply the extracted tar archive downloaded from the website with all the binaries) is trying to install another tool called "minimap". I am not familiar with this tool. Does anybody know whether this is the correct one: https://github.com/lh3/minimap2
That is indeed the tool yes.
I would advise getting it installed properly and available through the PATH variable as I mentioned. I'm not sure what symlink/program name Quast will be expecting (likely
minimap2
orminimap
) so it should be available in PATH as somethign to that effect.