Skip to content

Commit

Permalink
complex function of get_assembly
Browse files Browse the repository at this point in the history
  • Loading branch information
SilasK committed Jul 26, 2023
1 parent 3ff6fbf commit 27b508f
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion workflow/rules/sample_table.smk
Original file line number Diff line number Diff line change
Expand Up @@ -182,4 +182,17 @@ def get_quality_controlled_reads(wildcards, include_se=False):


def get_assembly(wildcards):
return "{sample}/assembly/{sample}_contigs.fasta".format(sample=wildcards.sample)
"""
Returns Assembly file for a given sample.
"""

Header= "Assembly"
try:
return get_files_from_sampleTable(wildcards.sample, Header)

except FileNotInSampleTableException:
# return files as named by atlas pipeline

return "{sample}/assembly/{sample}_contigs.fasta".format(sample=wildcards.sample )

0 comments on commit 27b508f

Please sign in to comment.