Skip to content

Commit

Permalink
Merge pull request #117 from pnnl/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
SilasK authored Jun 19, 2018
2 parents 502d0cb + 7c58bd0 commit a01f1ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion atlas/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def get_quality_controlled_reads(wildcards):
or config["samples"][wildcards.sample].get("paired", False) \
else ['se']
fastq = dict(zip(fractions, expand("{sample}/sequence_quality_control/{sample}_QC_{fraction}.fastq.gz",
fraction=fractions, **wildcards)))
fraction=fractions, sample=wildcards.sample)))
return fastq


Expand Down
9 changes: 3 additions & 6 deletions atlas/rules/assemble.snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,11 @@ rule init_pre_assembly_processing:
input:
unpack(get_quality_controlled_reads) #expect SE or R1,R2 or R1,R2,SE
output:
temp(expand("{{sample}}/assembly/reads/QC_{fraction}.fastq.gz",
fraction=MULTIFILE_FRACTIONS))
temp("{sample}/assembly/reads/QC_{fraction}.fastq.gz")
run:
# make symlink
for i in range(len(input)):
os.symlink(os.path.relpath(input[i],os.path.dirname(output[i])),output[i])
fraction = wildcards.fraction
os.symlink(os.path.relpath(input[fraction],os.path.dirname(output[0])),output[0])

rule normalize_coverage_across_kmers:
input:
Expand Down Expand Up @@ -547,7 +546,6 @@ rule pileup:
bincov = "{sample}/assembly/contig_stats/postfilter_coverage_binned.txt"
params:
pileup_secondary = 't' if config.get("count_multi_mapped_reads", CONTIG_COUNT_MULTI_MAPPED_READS) else 'f',
physcov = 't' if not config.get("count_multi_mapped_reads", CONTIG_COUNT_MULTI_MAPPED_READS) else 'f'
benchmark:
"logs/benchmarks/assembly/calculate_coverage/pileup/{sample}.txt"
log:
Expand All @@ -567,7 +565,6 @@ rule pileup:
hist={output.covhist} \
basecov={output.basecov}\
concise=t \
physcov={params.physcov} \
secondary={params.pileup_secondary} \
bincov={output.bincov} 2> {log}"""

Expand Down

0 comments on commit a01f1ae

Please sign in to comment.