Skip to content

Commit

Permalink
remove duplicates from paths
Browse files Browse the repository at this point in the history
  • Loading branch information
ktmeaton committed Nov 6, 2020
1 parent 2c67caf commit 145b3c5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions workflow/rules/metadata.smk
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Metadata filtering
include: "functions.smk"

rule metadata:
"""
Expand All @@ -7,9 +8,9 @@ rule metadata:
output:
tsv = results_dir + "/metadata/{reads_origin}/metadata.tsv",
params:
samples = lambda wildcards: ",".join([
samples = lambda wildcards: ",".join(remove_duplicates([
os.path.basename(os.path.dirname(path)) for path in identify_paths(outdir="metadata", reads_origin=wildcards.reads_origin)
]),
])),
db = os.path.join(results_dir, "sqlite_db", config["sqlite_db"])
shell:
"""
Expand Down

0 comments on commit 145b3c5

Please sign in to comment.