Skip to content

Commit

Permalink
Update workflow to allow gm_threshold to be single integers
Browse files Browse the repository at this point in the history
  • Loading branch information
kylacochrane committed Jun 19, 2024
1 parent cdbe9ef commit 63e69b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workflows/gas_nomenclature.nf
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ workflow GAS_NOMENCLATURE {
exit 1, "--gm_thresholds ${params.gm_thresholds}: Cannot pass null or empty string"
}

gm_thresholds_list = params.gm_thresholds.split(',')
gm_thresholds_list = params.gm_thresholds.toString().split(',')
if (params.pd_distm == 'hamming') {
if (gm_thresholds_list.any { it != null && it.contains('.') }) {
exit 1, ("'--pd_distm ${params.pd_distm}' is set, but '--gm_thresholds ${params.gm_thresholds}' contains fractions."
Expand Down

0 comments on commit 63e69b3

Please sign in to comment.