Skip to content

Commit

Permalink
update ref_guided_consensus
Browse files Browse the repository at this point in the history
  • Loading branch information
dpark01 committed Jan 11, 2015
1 parent f9e51ae commit 49c580d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pipes/rules/interhost.rules
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ rule all_ref_guided:
config["reportsDir"]+'/summary.coverage_ref.txt.gz'

rule ref_guided_consensus:
input: config["dataDir"]+'/'+config["subdirs"]["source"]+'/{sample}.bam'
input: config["dataDir"]+'/'+config["subdirs"]["depletion"]+'/{sample}.raw.bam'
output: config["dataDir"]+'/'+config["subdirs"]["align_ref"]+'/{sample}.realigned.bam',
config["dataDir"]+'/'+config["subdirs"]["align_ref"]+'/{sample}.vcf.gz',
config["dataDir"]+'/'+config["subdirs"]["align_ref"]+'/{sample}.fasta'
Expand All @@ -37,12 +37,12 @@ rule ref_guided_consensus:
logid="{sample}",
refGenome=config["ref_genome"],
novoalign_options="-r Random -l 30 -g 40 -x 20 -t 502",
min_coverage="2"
min_coverage="3"
run:
makedirs(expand("{dir}/{subdir}",
dir=[config["dataDir"]],
subdir=[config["subdirs"]["align_ref"], config["subdirs"]["assembly"]]))
shell("{config[binDir]}/assembly.py refine_assembly {params.refGenome} {input} {output[2]} --outBam {output[0]} --outVcf {output[1]} --min_coverage {params.min_coverage} --novo_params '{params.novoalign_options}' --keep_all_reads")
shell("{config[binDir]}/assembly.py refine_assembly {params.refGenome} {input} {output[2]} --outBam {output[0]} --outVcf {output[1]} --min_coverage {params.min_coverage} --novo_params '{params.novoalign_options}' --keep_all_reads --chr_names {wildcards.sample}")

rule ref_guided_diversity:
input:
Expand Down

0 comments on commit 49c580d

Please sign in to comment.