Skip to content

Commit

Permalink
set all extentions to lower case for simple extention detection
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasscheid committed May 28, 2024
1 parent 3caf8c7 commit 586d473
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion subworkflows/local/prepare_spectra.nf
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ workflow PREPARE_SPECTRA {
return [ meta, filename ]
mzml : meta.ext == 'mzml'
return [ meta.subMap('id', 'sample', 'condition', 'group_count', 'spectra'), filename ]
mzml_gz : meta.ext == 'mzML.gz'
mzml_gz : meta.ext == 'mzml.gz'
return [ meta.subMap('id', 'sample', 'condition', 'group_count', 'spectra'), filename ]
d : meta.ext == 'd'
return [ meta.subMap('id', 'sample', 'condition', 'group_count', 'spectra'), filename ]
Expand Down
2 changes: 1 addition & 1 deletion subworkflows/local/utils_nfcore_mhcquant_pipeline/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def validateInputSamplesheet(input) {
def getCustomExtension(file) {
def name = file.getName()
if (name =~ /.*\.(d\.tar\.gz|d\.tar|d\.zip|mzML\.gz|raw|RAW|mzML|d)$/) {
return name.split("\\.").drop(1).join(".")
return name.split("\\.").drop(1).join(".").toLowerCase()
} else {
return file.getExtension().toLowerCase()
}
Expand Down

0 comments on commit 586d473

Please sign in to comment.