INNER CODE UNIT · Python
full_tmp_list
HadrienG/InSilicoSeq · iss/app.py:113
full_tmp_list = temp_R1 + temp_R2 + temp_mut
full_tmp_list.append(genome_file)
if os.path.exists("%s.memmap" % args.output):
full_tmp_list.append("%s.memmap" % args.output)
util.cleanup(full_tmp_list)
sys.exit(1)
else:
# remove the duplicates in file list and cleanup
# we remove the duplicates in case two records had the same header
# and reads were appended to the same temp file.
temp_R1 = [temp_file + "_R1.fastq" for temp_file in temp_file_list]
temp_R2 = [temp_file + "_R2.fastq" for temp_file in temp_file_list]
temp_mut = [temp_file + ".vcf" for temp_file in temp_file_list] if args.store_mutations else []
util.concatenate(temp_R1, args.output + "_R1.fastq")
util.concatenate(temp_R2, args.output + "_R2.fastq")
if args.store_mutations:
util.concatenate(
temp_mut,