Skip to content

Commit

Permalink
hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
mv-lab committed Aug 28, 2019
1 parent 57043f0 commit ffa96d6
Showing 33 changed files with 1,335 additions and 4,680 deletions.
13 changes: 13 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,15 @@
# ignore .snakemake
.snakemake/

command

# ignore mock data (backup)
mockdata/

# PyCache

.*__pycache__

# rawdata

rawdata/
16 changes: 10 additions & 6 deletions Snakefile
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@

include: "rules/common.smk"
include: "rules/common.rules.smk"

##### Modules #####

include: "rules/denovo.smk"
include: "rules/readqc.smk"
include: "rules/mapping.smk"
include: "rules/calling.smk"
include: "rules/denovo.rules.smk"
include: "rules/readqc.rules.smk"
include: "rules/align.rules.smk"
include: "rules/varcall.rules.smk"
include: "rules/stats.rules.smk"
include: "rules/abra2.rules.smk"

##### Target rules #####

rule all:
input:
rules.denovo.input,
#rules.denovo.input,
rules.reads.input,
rules.align.input,
rules.abra2.output,
rules.varcall.input,
#rules.stats.input,
1,512 changes: 1,026 additions & 486 deletions dag.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 0 additions & 3 deletions data/samplelists/test.txt

This file was deleted.

Binary file added envs/abra2.jar
Binary file not shown.
2 changes: 2 additions & 0 deletions condaenv.yml → envs/condaenv.yml
Original file line number Diff line number Diff line change
@@ -10,3 +10,5 @@ dependencies:
- bcftools
- qualimap
- AdapterRemoval
- seqhax
- pigz
3,838 changes: 0 additions & 3,838 deletions rawdata/reference/genome.fa

This file was deleted.

228 changes: 0 additions & 228 deletions rawdata/reference/genome.fa.amb

This file was deleted.

3 changes: 0 additions & 3 deletions rawdata/reference/genome.fa.ann

This file was deleted.

Binary file removed rawdata/reference/genome.fa.bwt
Binary file not shown.
1 change: 0 additions & 1 deletion rawdata/reference/genome.fa.fai

This file was deleted.

Binary file removed rawdata/reference/genome.fa.pac
Binary file not shown.
Binary file removed rawdata/reference/genome.fa.sa
Binary file not shown.
Binary file removed rawdata/runs/run_1/A.fastq.gz
Binary file not shown.
Binary file removed rawdata/runs/run_1/B1.fastq.gz
Binary file not shown.
Binary file removed rawdata/runs/run_1/B2.fastq.gz
Binary file not shown.
Binary file removed rawdata/runs/run_1/C.fastq.gz
Binary file not shown.
Binary file removed rawdata/runs/run_2/C.fastq.gz
Binary file not shown.
26 changes: 26 additions & 0 deletions rules/abra2.rules.smk
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
rule abra2:
input:
bam="data/alignments/sets/bwa~genome~all_samples.bam",
#ref= lambda wc: config['refs'][wc.ref],
output:
"data/abra/bwa~genome~all_samples.bam",
log:
log = "data/log/bwa~genome.log",
threads:
3
params:
region = config['abra2']['regions'],
abra_temp = config['abra2']['temp'],
abra_release = config['abra2']['release'],
mem= config['abra2']['memory'],
shell:
"( java"
" -{params.mem}"
" -jar {params.abra_release}"
" --in {input.bam}"
" --out {output}"
" --ref rawdata/reference/genome.fa"
" --threads {threads}"
" --targets {params.region}"
" --tmpdir {params.abra_temp}"
") >{log.log} 2>&1"
Loading

0 comments on commit ffa96d6

Please sign in to comment.