Giter VIP home page Giter VIP logo

Comments (8)

pditommaso avatar pditommaso commented on August 18, 2024 1

This seems an issue on NF side, a possible and nicer workaround should be 👍

task.memory ? "--limitBAMsortRAM ${task.memory.toBytes() - 100000000 : ''

from rnaseq.

ewels avatar ewels commented on August 18, 2024
ERROR ~ Error executing process > 'star (UHR_Rep2_ERCC-Mix1_1)'

Caused by:
  Not a valid memory value: null

Source block:
  prefix = reads[0].toString() - ~/(_R1)?(_trimmed)?(_val_1)?(\.fq)?(\.fastq)?(\.gz)?$/
  def avail_mem = task.memory == null ? '' : "--limitBAMsortRAM ${task.memory.toBytes() - 100000000}"
  seqCenter = params.seqCenter ? "--outSAMattrRGline ID:$prefix 'CN:$params.seqCenter'" : ''
  """
  STAR --genomeDir $index \\
      --sjdbGTFfile $gtf \\
      --readFilesIn $reads  \\
      --runThreadN ${task.cpus} \\
      --twopassMode Basic \\
      --outWigType bedGraph \\
      --outSAMtype BAM SortedByCoordinate $avail_mem \\
      --readFilesCommand zcat \\
      --runDirPerm All_RWX \\
      --outFileNamePrefix $prefix $seqCenter \\
  """

@pditommaso, I guess this is being caused by the statement task.memory == null. Is this something that's changed in the last release? Should this code be replaced with something different?

from rnaseq.

ewels avatar ewels commented on August 18, 2024

Updated and in PR #96 - tests now running. Thanks both!

from rnaseq.

ewels avatar ewels commented on August 18, 2024

Do you think that this will now be a problem?

withName: '*' { memory = null }

from rnaseq.

ewels avatar ewels commented on August 18, 2024

Hi @edxxgardo,

I've just merged what I hope is a fix into the dev branch. If you could try running again and see if you still get the same problem, that would be great!

Thanks,

Phil

from rnaseq.

edxxgardo avatar edxxgardo commented on August 18, 2024

Thanks. I'll try and get back to you soon.

from rnaseq.

edxxgardo avatar edxxgardo commented on August 18, 2024

Ok, no more memory error. But, the problem with the never ending process mentioned in #93 is still there.

from rnaseq.

ewels avatar ewels commented on August 18, 2024

Great stuff, thanks! 🎉

from rnaseq.

Related Issues (20)

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.