Skip to content

Commit 8caa06a

Browse files
committed
tempdir to before call
1 parent ce8f514 commit 8caa06a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

civet/command.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -263,10 +263,6 @@ def main(sysargs = sys.argv[1:]):
263263
# runs supplied fasta qc
264264
query_metadata, passed_qc_fasta, found_in_background_data = input_data_parsing.query_check_against_background_merge_input(config)
265265

266-
with open(os.path.join(config[KEY_TEMPDIR],"id_list.csv"),"w") as fw:
267-
for i in config[KEY_IDS]:
268-
fw.write(f"{i}\n")
269-
config[KEY_IDS] = os.path.join(config[KEY_TEMPDIR],"id_list.csv")
270266

271267
# Define what's going to go in the report and sort global report options
272268
# stored under config = { "report_content": [1, 2, 3, 4], "reports": [1,2,3,4],[1,2]}
@@ -278,6 +274,10 @@ def main(sysargs = sys.argv[1:]):
278274

279275
# sets up the output dir, temp dir, and data output desination
280276
directory_setup.output_group_parsing(args.outdir, args.output_prefix, args.overwrite, args.datestamp, args.output_data, args.tempdir, args.no_temp, config)
277+
with open(os.path.join(config[KEY_TEMPDIR],"id_list.csv"),"w") as fw:
278+
for i in config[KEY_IDS]:
279+
fw.write(f"{i}\n")
280+
config[KEY_IDS] = os.path.join(config[KEY_TEMPDIR],"id_list.csv")
281281

282282
# write the merged metadata, the extracted passed qc supplied fasta and the extracted matched fasta from the background data
283283
input_data_parsing.write_parsed_query_files(query_metadata,passed_qc_fasta,found_in_background_data, config)

0 commit comments

Comments
 (0)