-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
66d11e0
commit bb01f7b
Showing
8 changed files
with
52 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
channels: | ||
- bioconda | ||
- r | ||
dependencies: | ||
- trimmomatic ==0.36 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
name: "trimmomatic se" | ||
description: Trim single-end reads with trimmomatic. | ||
authors: | ||
- Johannes Köster |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
rule trimmomatic_pe: | ||
input: | ||
"reads/{sample}.fastq" | ||
output: | ||
"trimmed/{sample}.fastq.gz" | ||
log: | ||
"logs/trimmomatic/{sample}.log" | ||
params: | ||
# list of trimmers (see manual) | ||
trimmer=["TRAILING:3"] | ||
# optional parameters | ||
extra="" | ||
wrapper: | ||
"master/bio/trimmomatic/se" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@1 | ||
ACGGCAT | ||
+ | ||
!!!!!!! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import subprocess | ||
import os | ||
|
||
def setup_module(): | ||
os.chdir(os.path.join(os.path.dirname(__file__), "test")) | ||
|
||
def test(): | ||
subprocess.check_call(["snakemake", "trimmed/a.fastq.gz", "--use-conda", "-F"]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
__author__ = "Johannes Köster" | ||
__copyright__ = "Copyright 2016, Johannes Köster" | ||
__email__ = "koester@jimmy.harvard.edu" | ||
__license__ = "MIT" | ||
|
||
|
||
from snakemake.shell import shell | ||
|
||
extra = snakemake.params.get("extra", "") | ||
log = snakemake.log_fmt_shell(stdout=True, stderr=True) | ||
trimmer = " ".join(snakemake.params.trimmer) | ||
|
||
shell("trimmomatic SE {snakemake.params.extra} " | ||
"{snakemake.input} {snakemake.output} " | ||
"{trimmer} " | ||
"{log}") |