Skip to content

Commit

Permalink
renamed checkpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
farchaab committed May 15, 2024
1 parent fdd8611 commit a7f5aa1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mess/workflow/rules/preflight/functions.smk
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ fasta_cache = {}


def fasta_input(wildcards):
table = checkpoints.calculate_coverage.get(**wildcards).output[0]
table = checkpoints.calculate_genome_coverages.get(**wildcards).output[0]
if table not in fasta_cache:
df = pd.read_csv(table, sep="\t", index_col="fasta")
fasta_cache[table] = df
Expand All @@ -68,7 +68,7 @@ def fasta_input(wildcards):


def list_fastas(wildcards):
table = checkpoints.calculate_coverage.get(**wildcards).output[0]
table = checkpoints.calculate_genome_coverages.get(**wildcards).output[0]
df = pd.read_csv(table, sep="\t")
fastas = list(set(df["fasta"]))
return expand(os.path.join(dir.out.processing, "{fasta}.fasta"), fasta=fastas)
Expand Down

0 comments on commit a7f5aa1

Please sign in to comment.