Hello, has anyone run into running `QUAST` with a...
# modules
n
Hello, has anyone run into running
QUAST
with a reference? It seems that the container on biocontainers is missing
bwa
and the installation by quast typically fails
Turned out that the container in the module is pretty old, this container with the same quast version works quay.io/biocontainers/quast:5.2.0--py39pl5321heaaa4ec_4
p
Feel free to update the version in #modules 🙂
✅ 2
n
p
Thanks! So the conda version is unchanged?
n
I am not really into how conda works, but as I understand the bioconda package was updated, and the version of quast did not change since it was missing a dependency?
Which is why container version is still 5.2.0, but the hash changed at some point
p
Yup 👍🏻
n
Hi, I noticed that the updated QUAST container also has an issue, while
bwa
is there, it is missing something else..
[Errno 2] No such file or directory: '/usr/local/lib/python3.9/site-packages/quast_libs/gridss/gridss-1.4.1.jar.download'
, I will see if there is a working container for quast somewhere thats not biocontainers
j
n
i dont see gridss in that list
The quast container by staphb seems ok
j
Oops sorryz misread thought BWA was missing
n
bwa was missing from the previous container version 🙂
j
Adding gridss should be easy, I have 2 minutes, let me try
n
thanks!
j
Ok that's more complicatd, there are weird python scripts to manually download the gridss binaries...
n
quast is kind of a mess
j
Do you know a small test command to check if gridss is working within quast?
n
Not really, no, it is required if quast is run like:
Copy code
quast.py \\
        --output-dir ${prefix} \\
        $reference \\
        $features \\
        --threads $task.cpus \\
        ${inputs} \\
        --glimmer \\
        $reference_bam \\
        --bam ${bam} \\
        --large \\
        ${args}
j
n
i think what makes it use gridss is --bam but I am not sure
yeah the sv detection is what happens when an alignment is provided
j
Ah,..
I just installed manually
Copy code
Executing transaction: / The default QUAST package does not include:            
* GRIDSS (needed for structural variants detection)                             
* SILVA 16S rRNA database (needed for reference genome detection in metagenomic datasets)                                                                       
* BUSCO tools and databases (needed for searching BUSCO genes) -- works in Linux only!                                                                          
                                                                                
To be able to use those, please run                                             
    quast-download-gridss                                                       
    quast-download-silva                                                        
    quast-download-busco                                                        
                                                                                
done                                                                            
#                                                                               
# To activate this environment, use                                             
#                                                                               
#     $ conda activate quast                                                    
#                                                                               
# To deactivate an active environment, use                                      
#                                                                               
#     $ conda deactivate
So that's not going work for any bioconda dervied bioconda as apparenrly you have to manually download the tool whihc makes no sense to me...
But I think I can 'hack' the gridss one (include gridds as a depdency, then copy/link the jar from that recipe into the QUAST lib directory), but can't do itn ow
n
That would probably be good, I am not really sure on module policy, this container works https://github.com/StaPH-B/docker-builds/blob/master/quast/5.2.0/Dockerfile
n
yeah
j
So that's basically what I will do just int eh conda-reciep
👍 1
(we wonm't want to use semi 'random' containers as we don't know the stability of them)
n
ok
j
OK I tried this but building locally seems to get into a loop and I don't know whyt :()
n
Hm, thats not great
j
Sorry @Niklas Schandry I've still not found time to do this 😞
I think it is possible but it's a very complicated recipe and I might have to argue for it, so I need time to sit down and concentrate it...
It might be better to ask someone else
(but I gcan give a description what I think needs to be done)
n
I am currently using the StaPH-B container, so it is fine for me; it would be nice to have a good biocontainer, but I understand that it is not a priority for anyone (including the QUAST people)... Idk if that is something that could be solved with a sequera container?
j
Not in this case unfortauntely - the seqera container just takes the bioconda recipe itself already
Still struggling to find time sorry 😞 if I ever get to this I'll let you know but maybe someone else can help in the meantime
n
No worries, I am personally ok with using the StaphB container. What would need to be done / what is causing troubles with the container build?
j
Modify the
build.sh
script to download the correct JAR from of gridss repository
And put it in the right place
(If I remember correctly)
IRRC there is another tool that they've had do to do this in a similar manner. The main thing will possibly be convincing the bioconda maintainers (They don't like random external downloads from unstable places)
n
I am a huge fan of random downloads from unstable places 😮 So essentially it is something like
Copy code
mkdir $QUAST_HOME/quast_libs/gridss 
curl -o https://github.com/ablab/quast/raw/master/external_tools/gridss/gridss-1.4.1.jar $QUAST_HOME/quast_libs/gridss/
maybe here https://github.com/jfy133/bioconda-recipes/blob/quast-missing-deps/recipes/quast/build.sh#L45 ?
j
Yes 😅
(sorry, I forgot how far I got with it..)
n
You mentioned getting stuck in an infinite loop 😄
👀 1
j
Haha ok, maybe it just needs debugging