Nextflow.error"Unknown digestion protocol. Currently, the available digestion options are ${params.digest.keySet().join(",")}. Please set manually the '--restriction_site' and '--ligation_site' parameters."
Nextflow.error"Unknown digestion protocol. Currently, the available digestion options are ${params.digest.keySet().join(",")}. Please set manually the '--restriction_site' and '--ligation_site' parameters."
}
}
checkParamIntList(params.bin_size,log)
checkParamIntList(params.res_dist_decay,log)
checkParamIntList(params.res_tads,log)
checkParamIntList(params.res_compartments,log)
// Check Digestion or DNase Hi-C mode
// Check Digestion or DNase Hi-C mode
//if (!params.dnase && !params.ligation_site) {
//if (!params.dnase && !params.ligation_site) {
// Nextflow.error "Ligation motif not found. Please either use the `--digestion` parameters or specify the `--restriction_site` and `--ligation_site`. For DNase Hi-C, please use '--dnase' option"
// Nextflow.error "Ligation motif not found. Please either use the `--digestion` parameters or specify the `--restriction_site` and `--ligation_site`. For DNase Hi-C, please use '--dnase' option"
...
@@ -82,4 +87,16 @@ class WorkflowHic {
...
@@ -82,4 +87,16 @@ class WorkflowHic {
Nextflow.error(error_string)
Nextflow.error(error_string)
}
}
}
}
// Check the params 'list of Integer' or Integer (ex bin_size)