Skip to content

Commit

Permalink
Prevent removing metaposit files
Browse files Browse the repository at this point in the history
  • Loading branch information
j-berg committed Apr 5, 2020
1 parent d143a9f commit 61cfdc0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions xpresspipe/Rmetagene.r
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,11 @@ run_list <- function (
write.table(bam, file=output_file, sep='\t', col.names=NA)

# Clean the batch
rm(file)
rm(bam)
rm(file_name)
rm(output_file)
gc()
#rm(file)
#rm(bam)
#rm(file_name)
#rm(output_file)
#gc()
}
}

Expand Down
6 changes: 3 additions & 3 deletions xpresspipe/metagene.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,9 @@ def finish_metagene(
dict = None
profile = None
gc.collect()
os.system(
'rm'
+ ' ' + str(args_dict['metagene']) + 'metrics/' + str(file).split('.')[0] + '.metaposit')
#os.system(
# 'rm'
# + ' ' + str(args_dict['metagene']) + 'metrics/' + #str(file).split('.')[0] + '.metaposit')

def run_metagene(args):

Expand Down

0 comments on commit 61cfdc0

Please sign in to comment.