Skip to content

Commit

Permalink
fix: use pandas unique instead of set
Browse files Browse the repository at this point in the history
  • Loading branch information
matinnuhamunada committed Nov 28, 2023
1 parent 1b3061a commit 4347eef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions workflow/rules/bgc_analytics.smk
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ rule antismash_overview_gather:
bgc_overview=lambda wildcards: expand("data/interim/antismash/{version}/{strains}_bgc_overview.json",
name=wildcards.name,
version=wildcards.version,
strains=[s for s in set(PEP_PROJECTS[wildcards.name].sample_table.genome_id)],
strains=[s for s in PEP_PROJECTS[wildcards.name].sample_table.genome_id.unique()],
),
mapping_dir = "data/interim/bgcs/{name}/{version}",
output:
Expand Down Expand Up @@ -71,13 +71,13 @@ rule antismash_summary:
bgc_count=lambda wildcards: expand(
"data/interim/antismash/{version}/{strains}_bgc_counts.json",
version=wildcards.version,
strains=[s for s in set(PEP_PROJECTS[wildcards.name].sample_table.genome_id)],
strains=[s for s in PEP_PROJECTS[wildcards.name].sample_table.genome_id.unique()],
),
as_dir=lambda wildcards: expand(
"data/processed/{name}/antismash/{version}/{strains}",
name=wildcards.name,
version=wildcards.version,
strains=[s for s in set(PEP_PROJECTS[wildcards.name].sample_table.genome_id)],
strains=[s for s in PEP_PROJECTS[wildcards.name].sample_table.genome_id.unique()],
),
bgc_overview="data/processed/{name}/tables/df_regions_antismash_{version}.csv",
output:
Expand Down

0 comments on commit 4347eef

Please sign in to comment.