Skip to content

Commit

Permalink
remove temporary files
Browse files Browse the repository at this point in the history
  • Loading branch information
aokad committed Jun 29, 2022
1 parent dd3bb48 commit 5c52895
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions nanomonsv/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,7 @@ def merge_txt(prefix):
if not args.debug:
for i in range(parallel_num):
os.remove(args.tumor_prefix + ".support_read_seq.%d.txt" % (i))
os.remove(args.tumor_prefix + ".support_read_seq.sbnd.%d.txt" % (i))
os.remove(args.tumor_prefix + ".consensus_seq.%d.txt" % (i))
os.remove(args.tumor_prefix + ".consensus_seq.sbnd.%d.txt" % (i))
os.remove(args.tumor_prefix + ".refined_bp.%d.txt" % (i))
Expand All @@ -368,8 +369,6 @@ def merge_txt(prefix):
os.remove(args.tumor_prefix + ".realignment.control.sread_count.sbnd.%d.txt" % (i))
os.remove(args.tumor_prefix + ".realignment.control.sread_info.%d.txt" % (i))
os.remove(args.tumor_prefix + ".realignment.control.sread_info.sbnd.%d.txt" % (i))
if not args.single_bnd:
os.remove(args.tumor_prefix + ".support_read_seq.sbnd.%d.txt" % (i))

logger.info("Final processing")
control_sread_count_file = args.tumor_prefix + ".realignment.control.sread_count.txt" if args.control_bam is not None else None
Expand All @@ -395,6 +394,8 @@ def merge_txt(prefix):
os.remove(args.tumor_prefix + ".insertion.sorted.clustered.bedpe")
os.remove(args.tumor_prefix + ".deletion.sorted.clustered.bedpe")
os.remove(args.tumor_prefix + ".singlebreakend.sorted.clustered.bed")
os.remove(args.tumor_prefix + ".support_read_seq.txt")
os.remove(args.tumor_prefix + ".support_read_seq.sbnd.txt")
#os.remove(args.tumor_prefix + ".consensus_seq.txt")
#os.remove(args.tumor_prefix + ".consensus_seq.sbnd.txt")
#os.remove(args.tumor_prefix + ".refined_bp.txt")
Expand All @@ -411,7 +412,7 @@ def merge_txt(prefix):

if not args.single_bnd:
os.remove(args.tumor_prefix + ".nanomonsv.sbnd.result.txt")
#os.remove(args.tumor_prefix + ".support_read_seq.sbnd.txt")


def validate_main(args):

Expand Down

0 comments on commit 5c52895

Please sign in to comment.