Skip to content

Commit 4852e60

Browse files
committed
Update ends_with_gz func
1 parent 6474655 commit 4852e60

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

workflow/rules/common.smk

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,11 @@ def get_reads(wildcards):
126126
# single end
127127
return {"r1": fastqs.fq1}
128128

129-
def ends_with_gz(wildcards):
130-
fastq1 = samples.loc[(wildcards.sample, wildcards.library), ["fq1"]]
131-
if fastq1.fq1.endswith("gz"):
129+
def ends_with_gz(samp_tab):
130+
if samp_tab["fq1"].str.endswith('gz').all():
132131
return True
133-
return False
132+
else:
133+
return False
134134

135135
def get_phenos(wildcards):
136136
"""Get fastq files using samples sheet."""

0 commit comments

Comments
 (0)