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"
}
Currently, PoSeiDon does not have a user-friendly error control and feedback. This can be implemented using functionalities such as
or
(stolen from https://github.com/hoelzer-lab/rnaseq/blob/master/main.nf)