Skip to content

Commit

Permalink
tis a function
Browse files Browse the repository at this point in the history
  • Loading branch information
FriederikeHanssen committed May 29, 2023
1 parent 9b4ac53 commit eb037dd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions workflows/sarek.nf
Original file line number Diff line number Diff line change
Expand Up @@ -1244,7 +1244,7 @@ def extract_csv(csv_file) {

meta.size = 1 // default number of splitted fastq

if(bam.getExtension != 'bam'){
if(bam.getExtension() != 'bam'){
error("A column with name 'bam' was specified, but it contains a file not ending on '.bam': " + bam.getName())
}

Expand All @@ -1262,7 +1262,7 @@ def extract_csv(csv_file) {

meta.data_type = 'cram'

if(cram.getExtension != 'cram'){
if(cram.getExtension() != 'cram'){
error("A column with name 'cram' was specified, but it contains a file not ending on '.cram': " + cram.getName())
}

Expand All @@ -1280,7 +1280,7 @@ def extract_csv(csv_file) {

meta.data_type = 'bam'

if(bam.getExtension != 'bam'){
if(bam.getExtension() != 'bam'){
error("A column with name 'bam' was specified, but it contains a file not ending on '.bam': " + bam.getName())
}

Expand All @@ -1297,7 +1297,7 @@ def extract_csv(csv_file) {

meta.data_type = 'cram'

if(cram.getExtension != 'cram'){
if(cram.getExtension() != 'cram'){
error("A column with name 'cram' was specified, but it contains a file not ending on '.cram': " + cram.getName())
}

Expand All @@ -1314,7 +1314,7 @@ def extract_csv(csv_file) {

meta.data_type = 'bam'

if(bam.getExtension != 'bam'){
if(bam.getExtension() != 'bam'){
error("A column with name 'bam' was specified, but it contains a file not ending on '.bam': " + bam.getName())
}

Expand Down

0 comments on commit eb037dd

Please sign in to comment.