Skip to content
This repository has been archived by the owner on Dec 18, 2023. It is now read-only.

Commit

Permalink
Add ITS region conditional in config
Browse files Browse the repository at this point in the history
  • Loading branch information
mdehollander committed Oct 1, 2018
1 parent c064598 commit 4fd3fed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ if config['its'] == True:
input:
fasta="{project}/mergepairs/{data}.fasta"
output:
fasta=temporary("{project}/itsx/{data}.ITS2.fasta")
fasta="{project}/itsx/{data}.ITS1.fasta" if config['its_region'] == 'ITS1' else "{project}/itsx/{data}.ITS2.fasta" if config['its_region'] == 'ITS2' else "{project}/itsx/{data}.full.fasta"
params:
basename="{project}/itsx/{data}",
dir="{project}/itsx"
Expand All @@ -315,7 +315,7 @@ if config['its'] == True:
# Combine per sample files to a single project file
rule mergefiles:
input:
fasta = expand(PROJECT + "itsx/{data}.ITS2.fasta", data=config["data"]) if config['its'] \
fasta = expand(rules.extract_its.output, data=config["data"], project=config['project']) if config['its'] \
else expand(PROJECT + "mergepairs/{data}.fasta", data=config["data"]),
output:
fasta=temporary("{project}/mergefiles/{project}.fasta")
Expand Down

0 comments on commit 4fd3fed

Please sign in to comment.