Coder Social home page Coder Social logo

Comments (9)

RenzoTale88 avatar RenzoTale88 commented on July 29, 2024

@smk5g5 thank you for using nf-LO! I'm currently trying to reproduce the error you're encountering in our system. I'll let you know as soon as I have a solution.
Have you tried resuming the run with -resume?
Best
Andrea

from nf-lo.

smk5g5 avatar smk5g5 commented on July 29, 2024

@RenzoTale88 I have tried -resume but it did not help solve my problem. I am still getting the error at this step

Caused by:
Process requirement exceed available CPUs -- req: 2; avail: 1

Command executed:

mkdir SPLIT_tgt && chmod a+rw SPLIT_tgt
faSplit size -lift=target.lift -extra=100000 genome.fa 10000000 SPLIT_tgt/

from nf-lo.

RenzoTale88 avatar RenzoTale88 commented on July 29, 2024

@smk5g5 thank you for confirming this. I'll try to run some tests on our systems.
In the meanwhile, I can only suggest to try reduce the number of core to N-1, where N is the maximum available on your system. I'm not convinced this will sort the issue, but I suppose it might be worth a shot.
Also, keep in mind that --max_cpus refers to the number of cpus that you want a single process will use at the time (analogously to the nf-core workflows ).
I know these are not fixes, and I apologise for the inconvenience. I'll keep you updated when I will upload a patch.

Andrea

from nf-lo.

smk5g5 avatar smk5g5 commented on July 29, 2024

I had already tried changing the --max_cpus argument to 1 but it did not work. Is there a version of this submitting each step of the pipeline as a bsub using the LSF executor since nextflow is compatible with lsf?

from nf-lo.

RenzoTale88 avatar RenzoTale88 commented on July 29, 2024

Nextflow does support LSF as a scheduler, so in principle it is doable.
You can see if you can find any custom configuration here. If you find any, you can call these using the -profile CONFIGURATION_NAME.
Alternatively, we can define a configuration specific for your cluster, which will allow the workflow to automatically submit and take care of the jobs remotely.

from nf-lo.

RenzoTale88 avatar RenzoTale88 commented on July 29, 2024

@smk5g5 thank you for your patience. I've tried to reproduce the issue without success.

Nevertheless, I've just uploaded a new set of configurations that I hope will help preventing the problem. In particular, the workflow now will always use one core for jobs that are incapable of taking advantage of multiple core available (e.g. lastz and some post-processing jobs). In addition, I've modified the configuration for local runs with 1) reducing the spawning of new jobs in intervals of 0.25 seconds between submissions and 2) reducing the queueSize to the number of cores - 1 when more than one core is available.

Regarding your request of last week, you can specify a custom configuration through the -c MYPROFILE flag, or alternatively using the --my_profile MYPROFILE -profile local,custom_profile set of options, where MYPROFILE is your configuration file.

Hope these will help sorting out the issue!

from nf-lo.

smk5g5 avatar smk5g5 commented on July 29, 2024

Now I am getting a new error.

N E X T F L O W  ~  version 21.04.0
Pulling evotools/nf-LO ...
 downloaded from https://github.com/evotools/nf-LO.git
Launching `evotools/nf-LO` [focused_church] - revision: 0d144f8285 [main]
WARN: It appears you have never run this project before -- Option `-resume` is ignored

=====================================
         __           _      ____  
        / _|         | |    / __ \ 
  _ __ | |_   ______ | |   | |  | |
 | '_ \|  _| |_____| | |   | |  | |
 | | | | |           | |___| |__| |
 |_| |_|_|           |______\____/ 
=====================================
Nextflow LiftOver v 1.6.0
=====================================
source          : /storage1/fs1/tahan/Active/projects/saad/hs37d5.fa
target          : /storage1/fs1/tahan/Active/projects/saad/genome.fa
aligner         : lastz
distance        : medium
custom align    : false
custom chain    : false
source chunk    : 20000000
source overlap  : 0
target chunk    : 10000000
target overlap  : 100000
output folder   : /scratch1/fs1/tahan/my_liftover
liftover name   : liftover
annot           : false
annot type      : false
liftover meth.  : crossmap
igenomes_base   : s3://ngi-igenomes/igenomes/
igenomes_ignore : false
no_maf          : false
skip netsynt    : false
max cpu         : 20
max mem         : 200.GB
max rt          : 240.h
Using CrossMap
Invalid submit-rate-limit value: 0.25 sec -- It must be provide using the following format `num request / duration` eg. 10/1s

Below is the command used.

JAVA_HOME='/venv' PATH=/opt/conda/bin:/venv/bin:$PATH LSF_DOCKER_VOLUMES="/storage1/fs1/tahan/Active/:/storage1/fs1/tahan/Active/ /scratch1/fs1/tahan:/scratch1/fs1/tahan $HOME:$HOME" bsub -G compute-ris -o $HOME/nextflow.log -q general -M 216GB -n 20 -R "rusage[mem=216GB] span[hosts=1]" -a "docker(smk5g5/nf-lo:1.0.0)" nextflow run evotools/nf-LO -w /scratch1/fs1/tahan/nflow -resume --source /storage1/fs1/tahan/Active/projects/saad/hs37d5.fa --target /storage1/fs1/tahan/Active/projects/saad/genome.fa --aligner lastz --tgtSize 10000000 --tgtOvlp 100000 --srcSize 20000000 --liftover_algorithm crossmap --outdir /scratch1/fs1/tahan/my_liftover --publish_dir_mode copy --max_cpus 20 --max_memory 200.GB

from nf-lo.

RenzoTale88 avatar RenzoTale88 commented on July 29, 2024

@smk5g5 apologies for this, I've corrected the submission rate in the correct syntax. Could you please try the code now?
Thank you
Andrea

from nf-lo.

RenzoTale88 avatar RenzoTale88 commented on July 29, 2024

Closing due to inactivity.

from nf-lo.

Related Issues (10)

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.