Skip to content

Commit 4d73a41

Browse files
committed
minor changes from current version in qiita
1 parent 0801b5f commit 4d73a41

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

src/sequence_processing_pipeline/Commands.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,13 @@ def demux(id_map, fp, out_d, task, maxtask):
106106
fullname_r1 = outdir + sep + r1 + ext
107107
fullname_r2 = outdir + sep + r2 + ext
108108

109-
os.makedirs(outdir, exist_ok=True)
109+
# we have seen in lustre that sometime this line
110+
# can have a raise condition; making sure it doesn't brake
111+
# things
112+
try:
113+
os.makedirs(outdir, exist_ok=True)
114+
except FileExistsError:
115+
pass
110116
current_fp_r1 = gzip.open(fullname_r1, mode)
111117
current_fp_r2 = gzip.open(fullname_r2, mode)
112118
current_fp = {'1': current_fp_r1, '2': current_fp_r2}

src/sequence_processing_pipeline/Pipeline.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,8 +267,8 @@ def __init__(self, configuration_file_path, run_id, input_file_path,
267267
required_files = ['RTAComplete.txt', 'RunInfo.xml']
268268
for some_file in required_files:
269269
if not exists(join(self.run_dir, some_file)):
270-
raise PipelineError("required file '%s' is not present." %
271-
some_file)
270+
raise PipelineError(f"required file '{some_file}' is not "
271+
f"present {self.run_dir}.")
272272

273273
# verify that RunInfo.xml file is readable.
274274
try:

src/sequence_processing_pipeline/templates/multiqc_job.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
#SBATCH -N {{node_count}}
55
#SBATCH -n {{nprocs}}
66
#SBATCH --time {{wall_time_limit}}
7-
#SBATCH --mem {{mem_in_gb}}G
7+
# fastqc/multiqc use the same mem value in the templates (2gb); however multiqc requires ~12.
8+
#SBATCH --mem 1{{mem_in_gb}}G
89
#SBATCH --array {{array_params}}
910
set -x
1011
set +e

0 commit comments

Comments
 (0)