Skip to content

Commit

Permalink
Merge pull request #66 from CCBR/fix_reformatbed
Browse files Browse the repository at this point in the history
fix: add rerun incomplete and fix bed
  • Loading branch information
samarth8392 authored Jan 9, 2024
2 parents d1c527b + 1d7fd22 commit b59a71c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
5 changes: 2 additions & 3 deletions workflow/scripts/reformat_bed.py
Original file line number Diff line number Diff line change
Expand Up @@ -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=""
Expand Down

0 comments on commit b59a71c

Please sign in to comment.