Skip to content

Commit

Permalink
flipped inequality allowing more headers than values
Browse files Browse the repository at this point in the history
  • Loading branch information
mattheww95 committed May 31, 2024
1 parent 14558a9 commit 201a4d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/local/report.nf
Original file line number Diff line number Diff line change
Expand Up @@ -839,7 +839,7 @@ def table_values(file_path, header_p, seperator, headers=null){
while(line = it.readLine()){
split_line = line.split(seperator) // split will allow for missing values
// Transpose, and collect converts the data to a map
if(split_line.size() != split_header.size()){
if(split_line.size() > split_header.size()){
error("The number of values in ${file_path} differs from number of columns headers ${split_header}")
}

Expand Down

0 comments on commit 201a4d4

Please sign in to comment.