Skip to content

Commit

Permalink
Merge pull request #63 from snakemake-workflows/fix-sra-handling
Browse files Browse the repository at this point in the history
fix: make specification of SRA samples in samples.tsv work (common.smk)
  • Loading branch information
dlaehnemann authored Apr 13, 2023
2 parents 72e933b + 683c611 commit 5f88554
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workflow/rules/common.smk
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def get_fq(wildcards):
return {"fq1": "trimmed/{sample}_{unit}_single.fastq.gz".format(**wildcards)}
else:
# no trimming, use raw reads
u = units.loc[(wildcards.sample, wildcards.unit), ["fq1", "fq2"]].dropna()
u = units.loc[(wildcards.sample, wildcards.unit)]
if pd.isna(u["fq1"]):
# SRA sample (always paired-end for now)
accession = u["sra"]
Expand Down

0 comments on commit 5f88554

Please sign in to comment.