Skip to content

Commit d82f7a1

Browse files
committed
revert changes
1 parent 112e57b commit d82f7a1

File tree

1 file changed

+4
-4
lines changed
  • subworkflows/local/samplesheet_to_channel

1 file changed

+4
-4
lines changed

subworkflows/local/samplesheet_to_channel/main.nf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ workflow SAMPLESHEET_TO_CHANNEL {
7474
def (meta, fastq_1, fastq_2, spring_1, spring_2, table, cram, crai, bam, bai, vcf, variantcaller) = ch_items
7575

7676

77-
if ((meta.lane || meta.lane != "") && fastq_2) {
77+
if ((meta.lane || meta.lane == 0) && fastq_2) {
7878
// mapping from fastq files
7979
meta = meta + [id: "${meta.sample}-${meta.lane}".toString(), data_type: "fastq_gz", num_lanes: num_lanes.toInteger(), size: 1]
8080

@@ -85,7 +85,7 @@ workflow SAMPLESHEET_TO_CHANNEL {
8585
error("Samplesheet contains fastq files but step is `${step}`. Please check your samplesheet or adjust the step parameter.\nhttps://nf-co.re/sarek/usage#input-samplesheet-configurations")
8686
}
8787
}
88-
else if ((meta.lane || meta.lane != "") && spring_1 && spring_2) {
88+
else if ((meta.lane || meta.lane == 0) && spring_1 && spring_2) {
8989
// mapping from TWO spring-files - one with R1 and one with R2
9090
meta = meta + [id: "${meta.sample}-${meta.lane}".toString(), data_type: "two_fastq_gz_spring", num_lanes: num_lanes.toInteger(), size: 1]
9191

@@ -96,7 +96,7 @@ workflow SAMPLESHEET_TO_CHANNEL {
9696
error("Samplesheet contains spring files (in columns `spring_1` and `spring_2`) but step is `${step}`. Please check your samplesheet or adjust the step parameter.\nhttps://nf-co.re/sarek/usage#input-samplesheet-configurations")
9797
}
9898
}
99-
else if ((meta.lane || meta.lane != "") && spring_1 && !spring_2) {
99+
else if ((meta.lane || meta.lane == 0) && spring_1 && !spring_2) {
100100
// mapping from ONE spring-file containing both R1 and R2
101101
meta = meta + [id: "${meta.sample}-${meta.lane}".toString(), data_type: "one_fastq_gz_spring", num_lanes: num_lanes.toInteger(), size: 1]
102102

@@ -107,7 +107,7 @@ workflow SAMPLESHEET_TO_CHANNEL {
107107
error("Samplesheet contains a spring file (in columns `spring_1`) but step is `${step}`. Please check your samplesheet or adjust the step parameter.\nhttps://nf-co.re/sarek/usage#input-samplesheet-configurations")
108108
}
109109
}
110-
else if ((meta.lane || meta.lane != "") && bam) {
110+
else if ((meta.lane || meta.lane == 0) && bam) {
111111
// Any step from BAM
112112
if (step != 'mapping' && !bai) {
113113
error("BAM index (bai) should be provided.")

0 commit comments

Comments
 (0)