Skip to content

Commit 8342ddb

Browse files
author
caleblareau
committed
stuff
1 parent 7a5afb6 commit 8342ddb

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

bap/cli_bap2.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ def main(mode, input, output, name, ncores, reference_genome,
8686
script_dir = os.path.dirname(os.path.realpath(__file__))
8787

8888
click.echo(gettime() + "Starting bap2 pipeline v%s" % __version__)
89+
output = output.rstrip("/") # just for consistency
8990

9091
# Determine which genomes are available
9192
rawsg = os.popen('ls ' + script_dir + "/anno/bedtools/*.sizes").read().strip().split("\n")
@@ -241,8 +242,8 @@ def main(mode, input, output, name, ncores, reference_genome,
241242
byefolder = of
242243
shutil.rmtree(byefolder + "/.internal")
243244
shutil.rmtree(byefolder + "/temp")
244-
os.remove(qcStatsBasicFile)
245-
os.remove(knee + "/" + name + ".kneesPlotted.txt")
245+
os.remove(fin + "/"+p.name+".basicQC.tsv")
246+
os.remove(knee + "/" + p.name + ".kneesPlotted.txt")
246247

247248
if(not extract_mito):
248249
shutil.rmtree(byefolder + "/mito")

0 commit comments

Comments
 (0)