Comments (7)
@andersgs you are right. Please hold back and give me a few hours to find a solution to the issue.
Apologies for this.
Andrea
from nf-lo.
Hi @andersgs
thank you for using nf-LO! :)
That is surprising to me, especially because the workflow creates just one anaconda environment, and shouldn't need a second one specifically for the reporting.
Also, I've just tried to create the environment (with mamba) on MacOS and WSL2 ubuntu, and seems to work just fine:
mamba env create -f environment.yml -p ${PWD}/nflo
Do you mind sharing the log/err of the issue you are coming across?
What platform are you testing the workflow in?
PS: do you have the chance of running it using either docker or singularity? See here and here
from nf-lo.
Hi @RenzoTale88
The behaviour for me was that Nextflow created one environment with the main environment file, and when I ran the workflow again but including —annotation it ran all the way up to making_report (I think that was the name - the last step where the HTML report is made), and then stalled while trying to create the environment in r-environment.yml. Internally, Nextflow is using conda env create.
I am running version 22.04.0 of Nextflow and the latest version of the workflow.
Sorry, when I said lmamba, I meant conda-libmamba-solver (https://github.com/conda-incubator/conda-libmamba-solver) which brings the mamba solver to conda. I am running conda version 4.13.
I am running everything on Ubuntu 22.04, on a machine with 16 CPUs and 128GB RAM.
I am wondering if there is something different in your conda config or perhaps with the r-environment.yml. Perhaps something with how you have your channels setup? Or maybe the Python version? My environment is running 3.9.
I created a separate environment with mamba, and with that I was able to get the environment created.
Perhaps you could add the useMamba parameter to the conda profile, or maybe create a mamba profile where the conda config has useMamba=true? That would give the users the opportunity to use Mamba if they wish.
Thank you again.
from nf-lo.
Hi @andersgs
Thanks for this, I've found the issue behind the problem. I forgot to update the conda configuration to use the default environment, which should be able to run the last stage regardless. I've pushed a fix to this, so if you can try to run:
nextflow drop evotools/nf-LO
And then rerun the workflow it should fix the issue.
In addition, I'll try to support mamba in the workflow using a specific flag. However, before pushing this functionality I need to perform a few tests beforehand. Once available, I'll update the documentation to specify this.
Thanks for this!
Andrea
from nf-lo.
Thank you @RenzoTale88. I will give it a go.
I am not sure it will work though. The environment.yml file in the assets folder does not have any of the R dependencies listed. However, the one in the base dir does.
Is that correct?
from nf-lo.
@andersgs I've added the support to mamba in the workflow. You can find the details on how to use mamba instead of anaconda here, assuming that mamba is installed and accessible of course.
In short, you can either:
- Install the global environment and then pass it manually to nextflow using
-with-conda /PATH/TO/LOCAL/ENV
- Use the
--mamba
flag.
I've just tested it, and seems to be working fine. Let me know if you come across any issue!
Best
Andrea
from nf-lo.
Using the --mamba flag works. Thank you @RenzoTale88
from nf-lo.
Related Issues (14)
- Process requirement exceed available CPUs -- req: 2; avail: 1 HOT 9
- Failed in ALIGNER:lastz HOT 1
- ALIGNER:chainMerge (chainmerge) FAILED HOT 7
- error exit status (255) HOT 4
- liftover failed with cross map HOT 7
- having trouble installing nf-lo manually HOT 1
- Too large of a bash script for slurm in chainMerge HOT 3
- Process `ALIGNER:chainMerge (chainmerge)` terminated with an error exit status (1) -- Execution is retried (1) HOT 19
- Minimap2 and gsalign using too few cpus HOT 2
- pipeline commands HOT 1
- environment.yml error even while running via docker HOT 6
- Having trouble in test nf-LO using conda HOT 3
- How to merge chain file from different chromosome HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nf-lo.