Skip to content

User-friendly error messages #11

@hoelzer

Description

@hoelzer

Currently, PoSeiDon does not have a user-friendly error control and feedback. This can be implemented using functionalities such as

annotated_reads
    .map{ row -> row[-2]}
    .collect()
    .subscribe onNext: {
        for ( i in it ){
        assert 2 <= it.count(i)
        }
    }, onError: { exit 1, 'You need at least 2 samples per condition to perform a differential gene expression analysis.' }

or

if ( ! (params.tpm instanceof java.lang.Double || params.tpm instanceof java.lang.Float || params.tpm instanceof java.lang.Integer) ) {
    exit 1, "--tpm has to be numeric"
}

(stolen from https://github.com/hoelzer-lab/rnaseq/blob/master/main.nf)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions