https://github.com/arjunrajlaboratory/RajLabSeqTools
Tip revision: c8b8c79b2ec9c1bd9eb7ced427bb2aec25f19506 authored by Benjamin Emert on 26 March 2020, 17:37:11 UTC
Updated reorganizeBasespaceFiles.py to better parse samples with same first index (e.g. sample 1 and sample10)
Updated reorganizeBasespaceFiles.py to better parse samples with same first index (e.g. sample 1 and sample10)
Tip revision: c8b8c79
trim.smk
def get_fastq(wildcards):
return units.loc[(wildcards.sample, wildcards.unit), ["fq1", "fq2"]].dropna()
rule cutadapt_pe:
input:
get_fastq
output:
fastq1="trimmed/{sample}-{unit}.1.fastq.gz",
fastq2="trimmed/{sample}-{unit}.2.fastq.gz",
qc="trimmed/{sample}-{unit}.qc.txt"
params:
"-a {} {}".format(config["trimming"]["adapter"], config["params"]["cutadapt-pe"])
log:
"logs/cutadapt/{sample}-{unit}.log"
wrapper:
"0.17.4/bio/cutadapt/pe"
rule cutadapt:
input:
get_fastq
output:
fastq="trimmed/{sample}-{unit}.fastq",
qc="trimmed/{sample}-{unit}.qc.txt"
params:
"-a {} {}".format(config["trimming"]["adapter"], config["params"]["cutadapt-se"])
log:
"logs/cutadapt/{sample}-{unit}.log"
wrapper:
"0.17.4/bio/cutadapt/se"