diff --git a/src/run.py b/src/run.py index 518a613..5c23814 100644 --- a/src/run.py +++ b/src/run.py @@ -596,6 +596,7 @@ def dryrun(outdir, config='config.json', snakefile=os.path.join('workflow', 'Sna try: dryrun_output = subprocess.check_output([ 'snakemake', '-npr', + '--rerun-incomplete', '-s', str(snakefile), '--use-singularity', '--cores', str(1), diff --git a/workflow/scripts/reformat_bed.py b/workflow/scripts/reformat_bed.py index 9521200..8b033c2 100644 --- a/workflow/scripts/reformat_bed.py +++ b/workflow/scripts/reformat_bed.py @@ -34,10 +34,9 @@ if (len(curr_cols) < 3): sys.exit("Targets BED file must contain at least three columns: chr, start, end") - if (len(curr_cols) < 4): - curr_cols[3]="." - + curr_cols.append(".") + min_output=curr_cols[0] + "\t" + curr_cols[1] + "\t" + curr_cols[2] extra_fields=""