Skip to content

Commit

Permalink
Add the function
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurenceKuhl committed Oct 17, 2024
1 parent b8c17f0 commit e927d7d
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions subworkflows/local/utils_nfcore_crisprseq_pipeline/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -468,3 +468,29 @@ def methodsDescriptionText(mqc_methods_yaml) {
return description_html.toString()
}

def validateParametersScreening() {
if(params.rra && params.mle_design_matrix) {
warning "mle_design_matrix will only be used for the MAGeCK MLE computations"
}

if(params.fasta && params.count_table) {
error "Please provide either a fasta file or a count_table"
}

if(params.fasta && !params.library) {
error "Please provide a fasta file and the library file"
}

if(params.day0_label && params.mle_design_matrix) {
warning "MAGeCK MLE module will be run twice, once with the design matrix and once with day0-label"
}

if(params.rra && params.mle_design_matrix) {
warning "mle_design_matrix will only be used for the MAGeCK MLE computations"
}

if(params.rra && !params.contrasts) {
error "Please also provide the contrasts table to compare the samples for MAGeCK RRA"
}
}

0 comments on commit e927d7d

Please sign in to comment.