Skip to content
This repository has been archived by the owner on Aug 20, 2024. It is now read-only.

Commit

Permalink
fix no header csv/tsv
Browse files Browse the repository at this point in the history
  • Loading branch information
nvnieuwk committed Oct 23, 2023
1 parent 6cc34d8 commit c085fd1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ class SchemaValidator extends PluginExtensionPoint {
}
}
else {
fileContent = samplesheetFile.splitCsv(header:true, strip:true, sep:delimiter)
fileContent = samplesheetFile.splitCsv(header:containsHeader ?: ["empty"], strip:true, sep:delimiter)
}
def List<Map<String,String>> fileContentCasted = castToType(fileContent, types)
if (validateFile(false, samplesheetFile.toString(), fileContentCasted, schemaFile.toString(), baseDir, s3PathCheck)) {
Expand Down Expand Up @@ -438,7 +438,7 @@ class SchemaValidator extends PluginExtensionPoint {
}
}
else {
fileContent = file_path.splitCsv(header:true, strip:true, sep:delimiter)
fileContent = file_path.splitCsv(header:containsHeader ?: ["empty"], strip:true, sep:delimiter)
}
def List<Map<String,String>> fileContentCasted = castToType(fileContent, types)
if (validateFile(useMonochromeLogs, key, fileContentCasted, schema_name, baseDir, s3PathCheck)) {
Expand Down

0 comments on commit c085fd1

Please sign in to comment.