Skip to content

Commit

Permalink
including periods in reference names throws error
Browse files Browse the repository at this point in the history
  • Loading branch information
DOH-JDJ0303 committed Jun 29, 2024
1 parent 59d9618 commit 2461b6a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions subworkflows/local/input_check.nf
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ def create_ref_channel(LinkedHashMap row) {
if ( ref.getExtension() != 'gz' ) {
exit 1, "ERROR: Reference assemblies must be gzip compressed. Please fix ${ref}"
}
if ( ref.baseName.toString().chars().filter(it -> it == '.').count() > 2 ) {
exit 1, "ERROR: Reference assemblies cannot contain periods in their name. Please fix ${ref}"
}

// add path of reference assembly to the meta map
def refs = [ meta, row.segment, ref ]
Expand Down

0 comments on commit 2461b6a

Please sign in to comment.