Closed verku closed 3 years ago
What commands did you use to run it on NAC and Uppmax? Which profiles?
Sorry, there's a few things to unpack here. I'm also not sure of the changes that have been made to Interproscan while I've been away.
Jacques is working on conda package for Interproscan (see https://github.com/bioconda/bioconda-recipes/issues/21601), so we never use the docker/singularity profile for the FunctionalAnnotation.nf
as the old container doesn't work properly.
Sorry, let's start from how you ran it on Uppmax and NAC, and which files you changed.
I think I'm slowly starting to understand.
Using the uppmax
profile enables singularity, but the Interproscan container doesn't work properly.
As long as the PATH is correctly set, then line 183 (https://github.com/NBISweden/pipelines-nextflow/blob/0bfecf0e2f4e91a83e7be75db25c8ccbb648e91b/FunctionalAnnotation/FunctionalAnnotation.nf#L183) shouldn't need to be commented out.
At the moment, there is then a need for a custom profile for uppmax to use this particular profile You can add the following to your own config file and pass it to nextflow:
nextflow run -c custom.config -profile custom_uppmax <script>
where custom.config
is:
profiles {
custom_uppmax {
executor {
name = 'slurm'
}
process {
scratch = '$SNIC_TMP'
}
includeConfig "$baseDir/config/compute_resources.config"
includeConfig "$baseDir/config/software_packages.config"
env.PATH='${PATH}:/sw/apps/bioinfo/InterProScan/5.30-69.0/rackham'
}
}
This uses the conda packages then by default.
I'll make a patch to the config until we can get around to having a proper container available. Thanks!
This sounds great, thank you! I will test it later today with my dataset.
On Wed, May 19, 2021 at 9:57 AM Mahesh Binzer-Panchal < @.***> wrote:
I think I'm slowly starting to understand.
Using the uppmax profile enables singularity, but the Interproscan container doesn't work properly.
As long as the PATH is correctly set, then line 183 ( https://github.com/NBISweden/pipelines-nextflow/blob/0bfecf0e2f4e91a83e7be75db25c8ccbb648e91b/FunctionalAnnotation/FunctionalAnnotation.nf#L183) shouldn't need to be commented out.
At the moment, there is then a need for a custom profile for uppmax to use this particular profile You can add the following to your own config file and pass it to nextflow:
nextflow run -c custom.config -profile custom_uppmax
where custom.config is:
profiles { custom_uppmax { executor { name = 'slurm' } process { scratch = '$SNIC_TMP' } includeConfig "$baseDir/config/compute_resources.config" includeConfig "$baseDir/config/software_packages.config" env.PATH='${PATH}:/sw/apps/bioinfo/InterProScan/5.30-69.0/rackham' } }
This uses the conda packages then by default.
I'll make a patch to the config until we can get around to having a proper container available. Thanks!
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/NBISweden/pipelines-nextflow/issues/55#issuecomment-843846463, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGFOADZPAJUBYHS7GK3DTVTTONVOXANCNFSM45CSCSVA .
Dr. Verena E. Kutschera NBIS Bioinformatics Long-term Support
Science for Life Laboratory Solna & Dept. of Biochemistry and Biophysics, Stockholm university Tomtebodavägen 23A SE-171 65 Solna
Fixed by #56
I tried to run the pipeline the same way as I ran it successfully on NAC, but adding the path to the local InterProScan module (
/sw/apps/bioinfo/InterProScan/5.30-69.0/rackham
) before starting the pipeline with the "uppmax" Nextflow profile, I got the following error:Next, I installed InterProScan locally (testing different versions), and exported the respective location to the PATH instead of the path to the module, but I kept getting similar errors, e.g.
Some observations from testing different versions:
Finally, I got the impression that Nextflow was trying to run the Interproscan Docker container (version 5.30-69.0) that is provided in
config/software_packages.config
, although I added other installations to the PATH. I eventually managed to run the pipeline on Rackham by commenting out line 10 in the fileconfig/software_packages.config
where the container was specified and by commenting out line 183 inFunctionalAnnotation.nf
that was adding the container installation to the PATH, and by starting the pipeline this way:1) activate the conda environment with Nextflow 2) load the Uppmax module with
module load bioinfo-tools InterProScan/5.30-69.0
3) start the pipeline with the "uppmax" profileThis is fine for the purpose of my project, but maybe you have an idea how to get it to run on Rackham with the original configuration.