Skip to content
Snippets Groups Projects
Commit 6132a27f authored by Helene Rimbert's avatar Helene Rimbert
Browse files

new rule splitISBP:task is now parallelised per chromosome

parent 55131a1a
No related branches found
No related tags found
No related merge requests found
......@@ -23,4 +23,15 @@ rule dumpISBPsID:
message: "Dump ISBPs IDs"
input: config['results']+"/1.filteredISBPs.sorted.bed"
output: temp(config['results']+"/1.filteredISBPs.ids")
shell: " cut -f 4 {input} > {output}"
\ No newline at end of file
shell: " cut -f 4 {input} > {output}"
rule splitISBP:
message: "Split isbps per chromosome"
input: config['results']+"/1.filteredISBPs.sorted.bed"
output: config['results']+"/1.filteredISBPs.sorted.{chrom}.bed"
log: config['results']+"/1.filteredISBPs.splitPerChrom{chrom}.log"
params: 'Chr{chrom}'
shell:
"""
fgrep -w {params} {input} 1> {output} 2> {log}
"""
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment