Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fixed some known bugs, added docs, and reformat (#469)
* Fixed build log, added docs, and reformat * Fixed typos * Fixed bug * Added missing import * Removed trailing dot * Removed extra from samtools pipe * Fixed wrong extras * Added test for large index * Remove unnecessary dependency
- Loading branch information
Showing
9 changed files
with
105 additions
and
21 deletions.
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
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 |
---|---|---|
@@ -1,6 +1,14 @@ | ||
name: "bowtie2" | ||
description: Map reads with bowtie2. | ||
url: http://bowtie-bio.sourceforge.net/bowtie2/manual.shtml | ||
authors: | ||
- Johannes Köster | ||
note: | ||
This wrapper uses an inner pipe. Make sure to use at least two threads in your Snakefile. | ||
- Filipe G. Vieira | ||
input: | ||
- FASTQ file(s) | ||
- Bowtie2 indexed reference index | ||
output: | ||
- SAM/BAM/CRAM file | ||
notes: | | ||
* The `extra` param allows for additional program arguments. | ||
* This wrapper uses an inner pipe. Make sure to use at least two threads in your Snakefile. |
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 |
---|---|---|
@@ -1,13 +1,21 @@ | ||
rule bowtie2: | ||
input: | ||
sample=["reads/{sample}.1.fastq", "reads/{sample}.2.fastq"] | ||
sample=["reads/{sample}.1.fastq", "reads/{sample}.2.fastq"], | ||
idx=multiext( | ||
"index/genome", | ||
".1.bt2", | ||
".2.bt2", | ||
".3.bt2", | ||
".4.bt2", | ||
".rev.1.bt2", | ||
".rev.2.bt2", | ||
), | ||
output: | ||
"mapped/{sample}.bam" | ||
"mapped/{sample}.bam", | ||
log: | ||
"logs/bowtie2/{sample}.log" | ||
"logs/bowtie2/{sample}.log", | ||
params: | ||
index="index/genome", # prefix of reference genome index (built with bowtie2-build) | ||
extra="" # optional parameters | ||
extra="", # optional parameters | ||
threads: 8 # Use at least two threads | ||
wrapper: | ||
"master/bio/bowtie2/align" |
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
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
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 |
---|---|---|
@@ -1,4 +1,12 @@ | ||
name: "bowtie2_build" | ||
description: Map reads with bowtie2. | ||
url: http://bowtie-bio.sourceforge.net/bowtie2/manual.shtml | ||
authors: | ||
- Daniel Standage | ||
- Filipe G. Vieira | ||
input: | ||
- FASTA reference | ||
output: | ||
- Bowtie2 reference index | ||
notes: | | ||
* The `extra` param allows for additional program arguments. |
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 |
---|---|---|
@@ -1,15 +1,43 @@ | ||
rule bowtie2_build: | ||
input: | ||
reference="genome.fasta" | ||
ref="genome.fasta", | ||
output: | ||
multiext( | ||
"genome", | ||
".1.bt2", ".2.bt2", ".3.bt2", ".4.bt2", ".rev.1.bt2", ".rev.2.bt2", | ||
".1.bt2", | ||
".2.bt2", | ||
".3.bt2", | ||
".4.bt2", | ||
".rev.1.bt2", | ||
".rev.2.bt2", | ||
), | ||
log: | ||
"logs/bowtie2_build/build.log" | ||
"logs/bowtie2_build/build.log", | ||
params: | ||
extra="" # optional parameters | ||
extra="", # optional parameters | ||
threads: 8 | ||
wrapper: | ||
"master/bio/bowtie2/build" | ||
|
||
|
||
|
||
rule bowtie2_build_large: | ||
input: | ||
ref="genome.fasta", | ||
output: | ||
multiext( | ||
"genome", | ||
".1.bt2l", | ||
".2.bt2l", | ||
".3.bt2l", | ||
".4.bt2l", | ||
".rev.1.bt2l", | ||
".rev.2.bt2l", | ||
), | ||
log: | ||
"logs/bowtie2_build/build.log", | ||
params: | ||
extra="--large-index", # optional parameters | ||
threads: 8 | ||
wrapper: | ||
"master/bio/bowtie2/build" |
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
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