Skip to content

Commit eb1f79d

Browse files
author
Jose Figueroa
committed
Bug fixes with mpp and decon
1 parent 3c29e97 commit eb1f79d

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

bin/metacerberus.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ def main():
607607
if func.startswith("decon"):
608608
fastq[key] = value
609609
set_add(step_curr, 5.2, "STEP 5b: Reformating FASTQ files to FASTA format")
610-
pipeline[metacerberus_qc.checkQuality.remote(value, config['EXE_FASTQC'], f"{config['EXE_FASTQC']}/{STEP[4]}/{key}/quality")] = key+'_decon'
610+
pipeline[metacerberus_qc.checkQuality.remote(value, config['EXE_FASTQC'], f"{config['DIR_OUT']}/{STEP[4]}/{key}/quality")] = key+'_decon'
611611
pipeline[metacerberus_formatFasta.reformat.remote(value, config, f"{STEP[5]}/{key}")] = key
612612
if func == "removeN" or func == "reformat":
613613
if func == "removeN":

lib/metacerberus_decon.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@
66
import os
77
from pathlib import Path
88
import subprocess
9+
import hydraMPP
910

1011

1112
# Decontaminate single end reads
13+
@hydraMPP.remote
1214
def deconSingleReads(key_value, config, subdir):
1315
path = Path(config['DIR_OUT'], subdir)
1416

lib/metacerberus_trim.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@
77
import os
88
from pathlib import Path
99
import subprocess
10+
import hydraMPP
1011

1112

1213
# Trim single end reads
14+
@hydraMPP.remote
1315
def trimSingleRead(key_value, config, subdir):
1416
path = Path(config['DIR_OUT'], subdir)
1517

@@ -53,7 +55,7 @@ def trimPairedRead(key_value, config, subdir):
5355
trimmedReads = (Path(path, outR1), Path(path, outR2))
5456

5557
done = path / "complete"
56-
if not config['REPLACE'] and done.exists() and trimmedReads.exists():
58+
if not config['REPLACE'] and done.exists() and trimmedReads[0].exists() and trimmedReads[1].exists():
5759
return trimmedReads
5860
done.unlink(missing_ok=True)
5961
path.mkdir(exist_ok=True, parents=True)

0 commit comments

Comments
 (0)