Skip to content

Commit b9fe64e

Browse files
committed
Initial commit
0 parents  commit b9fe64e

36 files changed

+1950
-0
lines changed

.editorconfig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# EditorConfig is awesome: http://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
[*]
7+
end_of_line = lf
8+
insert_final_newline = true
9+
charset = utf-8
10+
indent_style = space
11+
indent_size = 4
12+
13+
[*.{yml,yaml}]
14+
indent_style = space
15+
indent_size = 2

.gitattributes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
*.smk linguist-language=Python
2+
Snakefile linguist-language=Python
3+
.test/* linguist-vendored=false
4+
.test/report.html linguist-generated=true

.github/workflows/main.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Tests
2+
3+
on:
4+
- push
5+
- pull_request
6+
7+
jobs:
8+
run-workflow:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v1
12+
- name: Checkout submodules
13+
uses: textbook/[email protected]
14+
- name: snakemake
15+
uses: snakemake/snakemake-github-action@master
16+
with:
17+
directory: .test
18+
snakefile: Snakefile
19+
args: "--use-conda --show-failed-logs"
20+
stagein: |
21+
conda create -c bioconda -c conda-forge -q -n prep bwa gatk4 samtools
22+
source activate prep
23+
bwa index .test/data/ref/genome.chr21.fa
24+
samtools faidx .test/data/ref/genome.chr21.fa
25+
gatk CreateSequenceDictionary -R .test/data/ref/genome.chr21.fa

.gitignore

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
*
2+
!scripts
3+
!scripts/*
4+
!scripts/common
5+
!scripts/common/*
6+
scripts/.snakemake*
7+
!Snakefile
8+
!config.yaml
9+
!samples.tsv
10+
!resources
11+
!resources/*
12+
!envs
13+
!envs/*
14+
!environment.yaml
15+
!LICENSE
16+
!README.md
17+
!rules
18+
!rules/*
19+
!.gitignore
20+
!.gitattributes
21+
!.editorconfig
22+
!.travis.yml
23+
!.test
24+
!samples.tsv
25+
!units.tsv
26+
!schemas
27+
!schemas/*
28+
!.test/data
29+
!.test/samples.tsv
30+
!.test/units.tsv
31+
!.test/config.yaml
32+
!report
33+
!report/*.rst

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule ".test/data"]
2+
path = .test/data
3+
url = https://github.com/snakemake-workflows/ngs-test-data.git

.test/config.yaml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
samples: samples.tsv
2+
units: units.tsv
3+
4+
ref:
5+
name: GRCh38.86
6+
genome: data/ref/genome.chr21.fa
7+
known-variants: data/ref/dbsnp.vcf.gz
8+
9+
filtering:
10+
# Set to true in order to apply machine learning based recalibration of
11+
# quality scores instead of hard filtering.
12+
vqsr: false
13+
hard:
14+
# hard filtering as outlined in GATK docs
15+
# (https://gatkforums.broadinstitute.org/gatk/discussion/2806/howto-apply-hard-filters-to-a-call-set)
16+
snvs:
17+
"QD < 2.0 || FS > 60.0 || MQ < 40.0 || MQRankSum < -12.5 || ReadPosRankSum < -8.0"
18+
indels:
19+
"QD < 2.0 || FS > 200.0 || ReadPosRankSum < -20.0"
20+
21+
processing:
22+
remove-duplicates: true
23+
# restrict-regions: ../raw/captured_regions.bed
24+
# region-padding: 100
25+
26+
params:
27+
gatk:
28+
HaplotypeCaller: ""
29+
BaseRecalibrator: ""
30+
GenotypeGVCFs: ""
31+
VariantRecalibrator: ""
32+
picard:
33+
MarkDuplicates: "REMOVE_DUPLICATES=true"
34+
trimmomatic:
35+
pe:
36+
trimmer:
37+
- "LEADING:3"
38+
- "TRAILING:3"
39+
- "SLIDINGWINDOW:4:15"
40+
- "MINLEN:36"
41+
se:
42+
trimmer:
43+
- "LEADING:3"
44+
- "TRAILING:3"
45+
- "SLIDINGWINDOW:4:15"
46+
- "MINLEN:36"

.test/report.html

Lines changed: 1039 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.test/samples.tsv

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
sample
2+
A
3+
B

.test/units.tsv

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
sample unit platform fq1 fq2
2+
A 1 ILLUMINA data/reads/a.chr21.1.fq data/reads/a.chr21.2.fq
3+
B 1 ILLUMINA data/reads/b.chr21.1.fq data/reads/b.chr21.2.fq
4+
B 2 ILLUMINA data/reads/b.chr21.1.fq

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2018, Johannes Köster
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)