Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Bowtie2 meta #1586

Merged
merged 49 commits into from
Aug 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
ab82604
[fix] (template): Missing code in wrappers' doc. Error #187
Sep 21, 2020
de77ade
Merge remote-tracking branch 'upstream/master'
Nov 9, 2020
9b1447e
Merge branch 'snakemake:master' into master
tdayris Jul 2, 2021
91fd32d
Merge remote-tracking branch 'upstream/master'
Jul 16, 2021
ed2a885
Merge branch 'master' of https://github.com/tdayris/snakemake-wrappers
Jul 16, 2021
2a1655b
Merge remote-tracking branch 'upstream/master'
tdayris Apr 29, 2022
044cf8a
Merge remote-tracking branch 'upstream/master'
tdayris May 13, 2022
5b1c7b4
Merge remote-tracking branch 'upstreamhttp/master'
Jun 27, 2022
aea600e
Merge remote-tracking branch 'upstream/master'
Oct 11, 2022
ac4ac81
perf: update utils/datavzrd/environment.yaml. (#566)
johanneskoester Oct 11, 2022
88c479c
perf: update bio/bcftools/call/environment.yaml. (#567)
johanneskoester Oct 11, 2022
8d92bb5
perf: update bio/bcftools/concat/environment.yaml. (#568)
johanneskoester Oct 11, 2022
1c444dc
perf: autobump bio/bcftools/index/environment.yaml (#570)
johanneskoester Oct 11, 2022
534f834
chore: release 1.15.1 (#569)
github-actions[bot] Oct 12, 2022
7eb277c
perf: update bio/bgzip/environment.yaml. (#577)
snakedeploy-bot[bot] Oct 12, 2022
63f8acb
perf: update bio/bellerophon/environment.yaml. (#576)
snakedeploy-bot[bot] Oct 12, 2022
963bedf
perf: update bio/assembly-stats/environment.yaml. (#575)
snakedeploy-bot[bot] Oct 12, 2022
ff74710
perf: update bio/adapterremoval/environment.yaml. (#573)
snakedeploy-bot[bot] Oct 12, 2022
bb60c16
chore: autobump conda envs (#571)
johanneskoester Oct 12, 2022
d9a7a6a
perf: update bio/delly/environment.yaml. (#584)
snakedeploy-bot[bot] Oct 12, 2022
e0220d2
perf: update bio/busco/environment.yaml. (#581)
snakedeploy-bot[bot] Oct 12, 2022
ae10993
perf: update bio/clustalo/environment.yaml. (#582)
snakedeploy-bot[bot] Oct 12, 2022
76c9845
perf: update bio/fastp/environment.yaml. (#585)
snakedeploy-bot[bot] Oct 12, 2022
853a36d
perf: update bio/fastq_screen/environment.yaml. (#586)
snakedeploy-bot[bot] Oct 12, 2022
576c54a
perf: update bio/fasttree/environment.yaml. (#588)
snakedeploy-bot[bot] Oct 12, 2022
e473ff7
perf: update bio/fastqc/environment.yaml. (#587)
snakedeploy-bot[bot] Oct 12, 2022
6f5f48f
perf: update bio/filtlong/environment.yaml. (#589)
snakedeploy-bot[bot] Oct 12, 2022
5a1f598
perf: update bio/freebayes/environment.yaml. (#590)
snakedeploy-bot[bot] Oct 12, 2022
f60db66
perf: update bio/genefuse/environment.yaml. (#591)
snakedeploy-bot[bot] Oct 12, 2022
cb6b616
perf: update bio/genomepy/environment.yaml. (#592)
snakedeploy-bot[bot] Oct 12, 2022
f618f0d
chore: release 1.15.2 (#578)
github-actions[bot] Oct 12, 2022
141e09e
fix: set RG tag (#593)
FelixMoelder Oct 13, 2022
278f508
Update conventional-prs.yml
johanneskoester Oct 13, 2022
de6ce85
perf: autobump bio/deepvariant (#583)
snakedeploy-bot[bot] Oct 13, 2022
f9332c2
feat: bazam wrapper (#580)
christopher-schroeder Oct 13, 2022
39c488d
chore: release 1.16.0 (#596)
github-actions[bot] Oct 13, 2022
d1a68e5
Merge remote-tracking branch 'upstream/master'
Dec 5, 2022
7aadebb
Merge remote-tracking branch 'upstream/master'
Mar 31, 2023
6878cd6
Merge remote-tracking branch 'upstream/master'
Apr 7, 2023
77a2f4c
revert
Apr 11, 2023
939082e
revert
Apr 14, 2023
91ec8ee
Merge branch 'master' of https://github.com/tdayris/snakemake-wrappers
Apr 14, 2023
90518cf
Merge remote-tracking branch 'upstream/master'
May 2, 2023
bfdc5e0
Merge branch 'master' of https://github.com/snakemake/snakemake-wrappers
Jun 14, 2023
a379390
initial commit
Jul 10, 2023
b2d8ef3
add read groups
Jul 10, 2023
33a9585
add rg info
Jul 10, 2023
8a7d7f5
adding temp flags
Jul 27, 2023
c0e1d7e
Merge branch 'master' into bowtie2_meta
tdayris Jul 27, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions meta/bio/bowtie2_sambamba/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Bowtie2 Sambamba
url: http://lomereiter.github.io/sambamba/
description: >
Map reads with Bowtie 2, and post-process alignments with Sambamba.

+----------------+----------+----------------------------------------------------------------------------------------------+
| Step | Tool | Reason |
+================+==========+==============================================================================================+
| Indexation | Bowtie 2 | Create genome sequence index |
+----------------+----------+----------------------------------------------------------------------------------------------+
| Mapping | Bowtie 2 | Perform read mapping |
+----------------+----------+----------------------------------------------------------------------------------------------+
| Sort | Sambamba | Perform sort based on mapping position |
+----------------+----------+----------------------------------------------------------------------------------------------+
| Quality filter | Sambamba | Perform mapping quality filter |
+----------------+----------+----------------------------------------------------------------------------------------------+
| Deduplication | Sambamba | Identify possible sequencing duplicates |
+----------------+----------+----------------------------------------------------------------------------------------------+
| Indexation | Sambamba | Index deduplicated reads |
+----------------+----------+----------------------------------------------------------------------------------------------+
authors:
- Thibault Dayris
32 changes: 32 additions & 0 deletions meta/bio/bowtie2_sambamba/test/Sample1.R1.fastq
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
@1
GCTGCTATGGCTATAGCTCTA
+
IIIIIIIIIIIIIIIIIIIII
@2
GCTGCTATGGCTATAGCTCTA
+
IIIIIIIIIIIIIIIIIIIII
@3
GCTGCTATGGCTATAGCTCTA
+
IIIIIIIIIIIIIIIIIIIII
@4
GCTGCTATGGCTATAGCTCTA
+
IIIIIIIIIIIIIIIIIIIII
@5
GCTGCTATGGCTATAGCTCTA
+
IIIIIIIIIIIIIIIIIIIII
@6
GCTGCTATGGCTATAGCTCTA
+
IIIIIIIIIIIIIIIIIIIII
@7
GCTGCTATGGCTATAGCTCTA
+
IIIIIIIIIIIIIIIIIIIII
@8
GTATCGATCCGATTA
+
IIIIIIIIIIIIIII
32 changes: 32 additions & 0 deletions meta/bio/bowtie2_sambamba/test/Sample1.R2.fastq
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
@1
CTCGATATCGCGCTACGATCC
+
IIIIIIIIIIIIIIIIIIIII
@2
CTCGATATCGCGCTACGATCC
+
IIIIIIIIIIIIIIIIIIIII
@3
CTCGATATCGCGCTACGATCC
+
IIIIIIIIIIIIIIIIIIIII
@4
CTCGATATCGCGCTACGATCC
+
IIIIIIIIIIIIIIIIIIIII
@5
CTCGATATCGCGCTACGATCC
+
IIIIIIIIIIIIIIIIIIIII
@6
CTCGATATCGCGCTACGATCC
+
IIIIIIIIIIIIIIIIIIIII
@7
CTCGATATCGCGCTACGATCC
+
IIIIIIIIIIIIIIIIIIIII
@8
ATATCGATCGACGAT
+
IIIIIIIIIIIIIII
105 changes: 105 additions & 0 deletions meta/bio/bowtie2_sambamba/test/Snakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
rule bowtie2_build:
input:
ref="genome.fasta",
output:
multiext(
"genome",
".1.bt2",
".2.bt2",
".3.bt2",
".4.bt2",
".rev.1.bt2",
".rev.2.bt2",
),
log:
"logs/bowtie2_build/build.log",
params:
extra="",
threads: 8
wrapper:
"master/bio/bowtie2/build"


rule bowtie2_alignment:
input:
sample=["{sample}.R1.fastq", "{sample}.R2.fastq"],
idx=multiext(
"genome",
".1.bt2",
".2.bt2",
".3.bt2",
".4.bt2",
".rev.1.bt2",
".rev.2.bt2",
),
output:
temp("mapped/{sample}.bam"),
log:
"logs/bowtie2/{sample}.log",
params:
extra=(
" --rg-id {sample} "
"--rg 'SM:{sample} LB:FakeLib PU:FakePU.1.{sample} PL:ILLUMINA' "
),
threads: 8
wrapper:
"master/bio/bowtie2/align"


rule sambamba_sort:
input:
"mapped/{sample}.bam",
output:
temp("mapped/{sample}.sorted.bam"),
params:
"",
log:
"logs/sambamba-sort/{sample}.log",
threads: 8
wrapper:
"master/bio/sambamba/sort"


rule sambamba_view:
input:
"mapped/{sample}.sorted.bam",
output:
temp("mapped/{sample}.filtered.bam"),
params:
extra=(
" --format 'bam' "
"--filter 'mapping_quality >= 30 and not (unmapped or mate_is_unmapped)' "
),
log:
"logs/sambamba-view/{sample}.log",
threads: 8
wrapper:
"master/bio/sambamba/view"


rule sambamba_markdup:
input:
"mapped/{sample}.filtered.bam",
output:
"mapped/{sample}.rmdup.bam",
params:
extra=" --remove-duplicates ", # optional parameters
log:
"logs/sambamba-markdup/{sample}.log",
threads: 8
wrapper:
"master/bio/sambamba/markdup"


rule sambamba_index:
input:
"mapped/{sample}.rmdup.bam",
output:
"mapped/{sample}.rmdup.bam.bai",
params:
extra="",
log:
"logs/sambamba-index/{sample}.log",
threads: 8
wrapper:
"master/bio/sambamba/index"
3 changes: 3 additions & 0 deletions meta/bio/bowtie2_sambamba/test/genome.fasta
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
>FakeChrom
ATCGATGCTGCTATAGCTATAGCTCTAGATCTGATCTGCTAGTATCGATCCGATTATTAGCGCGATTATAGCGTAGTCA
ATCGATCTCGATATCGCGCTACGATCCGCGCGCGCGCGCGCATTATATCGATCGACGATGCTGCTAGCTAGCTGCTAGC
7 changes: 7 additions & 0 deletions meta/bio/bowtie2_sambamba/used_wrappers.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
wrappers:
- bio/bowtie2/build
- bio/bowtie2/align
- bio/sambamba/sort
- bio/sambamba/view
- bio/sambamba/markdup
- bio/sambamba/index
16 changes: 16 additions & 0 deletions test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5688,6 +5688,22 @@ def test_calc_consensus_reads():
)



@skip_if_not_modified
def test_bowtie2_sambamba_meta():
run(
"meta/bio/bowtie2_sambamba",
[
"snakemake",
"--cores",
"2",
"--use-conda",
"-F",
"mapped/Sample1.rmdup.bam.bai"
]
)


@skip_if_not_modified
def test_bazam_interleaved():
run(
Expand Down
Loading