forked from Redmar-van-den-Berg/snakemake-project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommon.smk
27 lines (19 loc) · 745 Bytes
/
common.smk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
containers = {"debian": "docker://debian:latest"}
def get_outfile():
return "outputfile.txt"
def get_forward(wildcards):
forward = pep.sample_table.loc[wildcards.sample, "forward"]
# If a single fastq file is specified, forward will be a string
if isinstance(forward, str):
return [forward]
# If multiple fastq files were specified, forward will be a list
else:
return forward
def get_reverse(wildcards):
reverse = pep.sample_table.loc[wildcards.sample, "reverse"]
# If a single fastq file is specified, reverse will be a string
if isinstance(reverse, str):
return [reverse]
# If multiple fastq files were specified, reverse will be a list
else:
return reverse