From 4852e600a4e808de1384ece48c4ae641d00c0c7c Mon Sep 17 00:00:00 2001 From: Kivanc Corut Date: Mon, 22 Nov 2021 11:28:20 -0500 Subject: [PATCH] Update ends_with_gz func --- workflow/rules/common.smk | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/workflow/rules/common.smk b/workflow/rules/common.smk index 1e56558..ea06535 100644 --- a/workflow/rules/common.smk +++ b/workflow/rules/common.smk @@ -126,11 +126,11 @@ def get_reads(wildcards): # single end return {"r1": fastqs.fq1} -def ends_with_gz(wildcards): - fastq1 = samples.loc[(wildcards.sample, wildcards.library), ["fq1"]] - if fastq1.fq1.endswith("gz"): +def ends_with_gz(samp_tab): + if samp_tab["fq1"].str.endswith('gz').all(): return True - return False + else: + return False def get_phenos(wildcards): """Get fastq files using samples sheet."""