-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from davidebolo1993/impg_initial
merging impg_initial into master
- Loading branch information
Showing
18 changed files
with
368 additions
and
278 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,3 +1 @@ | ||
# Snakemake pipeline | ||
|
||
Docs are in preparation | ||
# Snakemake pipeline |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,26 @@ | ||
rule bedtools_merge: | ||
''' | ||
https://github.com/arq5x/bedtools2 | ||
''' | ||
input: | ||
rules.impg_project.output | ||
output: | ||
config['output'] + '/bedtools/{region}.bed' | ||
threads: | ||
1 | ||
resources: | ||
mem_mb=lambda wildcards, attempt: attempt * config['default']['mem_mb'], | ||
time=lambda wildcards, attempt: attempt * config['default']['time'] | ||
container: | ||
'docker://davidebolo1993/cosigt_workflow:latest' | ||
benchmark: | ||
'benchmarks/{region}.bedtools_merge.benchmark.txt' | ||
|
||
shell: | ||
''' | ||
bedtools sort \ | ||
-i {input} | \ | ||
bedtools merge \ | ||
-d 50000 \ | ||
-i - > {output} | ||
''' |
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 was deleted.
Oops, something went wrong.
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,46 @@ | ||
rule pyfaidx_extract: | ||
''' | ||
https://github.com/mdshw5/pyfaidx/ | ||
''' | ||
input: | ||
fasta=config['assemblies'], | ||
bed=rules.bedtools_merge.output | ||
output: | ||
config['output'] + '/pyfaidx/{region}.fasta' | ||
threads: | ||
1 | ||
resources: | ||
mem_mb=lambda wildcards, attempt: attempt * config['default']['mem_mb'], | ||
time=lambda wildcards, attempt: attempt * config['default']['time'] | ||
container: | ||
'docker://davidebolo1993/cosigt_workflow:latest' | ||
benchmark: | ||
'benchmarks/{region}.pyfaidx_extract.benchmark.txt' | ||
shell: | ||
''' | ||
faidx \ | ||
--bed {input.bed} \ | ||
{input.fasta} > {output} | ||
''' | ||
|
||
rule samtools_faidx_index: | ||
''' | ||
https://github.com/samtools/samtools | ||
''' | ||
input: | ||
rules.pyfaidx_extract.output | ||
output: | ||
config['output'] + '/pyfaidx/{region}.fasta.fai' | ||
threads: | ||
1 | ||
resources: | ||
mem_mb=lambda wildcards, attempt: attempt * config['default']['mem_mb'], | ||
time=lambda wildcards, attempt: attempt * config['default']['time'] | ||
container: | ||
'docker://davidebolo1993/cosigt_workflow:latest' | ||
benchmark: | ||
'benchmarks/{region}.samtools_faidx_index.benchmark.txt' | ||
shell: | ||
''' | ||
samtools faidx {input} | ||
''' |
Oops, something went wrong.