Coder Social home page Coder Social logo

Comments (7)

RenzoTale88 avatar RenzoTale88 commented on July 29, 2024 1

@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.

RenzoTale88 avatar RenzoTale88 commented on July 29, 2024

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.

andersgs avatar andersgs commented on July 29, 2024

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.

RenzoTale88 avatar RenzoTale88 commented on July 29, 2024

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.

andersgs avatar andersgs commented on July 29, 2024

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.

RenzoTale88 avatar RenzoTale88 commented on July 29, 2024

@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:

  1. Install the global environment and then pass it manually to nextflow using -with-conda /PATH/TO/LOCAL/ENV
  2. 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.

andersgs avatar andersgs commented on July 29, 2024

Using the --mamba flag works. Thank you @RenzoTale88

from nf-lo.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.