Skip to content

Commit

Permalink
Update ends_with_gz func
Browse files Browse the repository at this point in the history
  • Loading branch information
akcorut committed Nov 22, 2021
1 parent 6474655 commit 4852e60
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions workflow/rules/common.smk
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down

0 comments on commit 4852e60

Please sign in to comment.