Coder Social home page Coder Social logo

Catch MACS error about chipseq HOT 8 CLOSED

nf-core avatar nf-core commented on May 29, 2024
Catch MACS error

from chipseq.

Comments (8)

orzechoj avatar orzechoj commented on May 29, 2024

A quick and ugly fix is to add errorStrategy = 'ignore' to the macsjob in base.config. But then we don't see which macs jobs have failed (and we ignore other errors in the macs jobs too).

from chipseq.

apeltzer avatar apeltzer commented on May 29, 2024

Is there a special error code that MACS generates in such a case? That would be interesting to catch and issue a warning for that sample.

from chipseq.

ewels avatar ewels commented on May 29, 2024

You mean an exit code? Not sure. I was saying to @orzechoj that we could implement a similar strategy to the one that we have in the rnaseq pipeline though, where we check the log files:

https://github.com/nf-core/rnaseq/blob/d64b7f536b09b400c8d46533b150c4f05843b556/main.nf#L591-L595

https://github.com/nf-core/rnaseq/blob/d64b7f536b09b400c8d46533b150c4f05843b556/main.nf#L530-L549

from chipseq.

apeltzer avatar apeltzer commented on May 29, 2024

Yeah, exit code was in my mind actually. I thought the failing MACS process issues an exit code != 0, therefore causing the pipeline to fail. If it just pushes something on stderr, we can implement it the way you proposed - nice 👍

from chipseq.

ewels avatar ewels commented on May 29, 2024

The problem with the exit code is that it probably doesn’t differentiate for why it fails - we only want to catch these specific failures. I could be wrong though!

from chipseq.

apeltzer avatar apeltzer commented on May 29, 2024

I fear so, too! If I find some time I'll have a look.

from chipseq.

orzechoj avatar orzechoj commented on May 29, 2024

The exit code is 1, which isn't so informative. But stderr has this error message

Too few paired peaks (0) so I can not build the model! Broader your MFOLD range parameter
may  erase this error. If it still can't build the model, we suggest to use --nomodel and 
--extsize 147 or other fixed number instead.

from chipseq.

drpatelh avatar drpatelh commented on May 29, 2024

Closing in favour of #128

from chipseq.

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.