Skip to content

Commit

Permalink
update email with some red
Browse files Browse the repository at this point in the history
  • Loading branch information
WardDeb committed May 17, 2023
1 parent e53ad59 commit 0f995fe
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/dissectBCL/classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,8 +402,6 @@ def spaceGood(freeSpace):
message += "return {}: {}\n".format(
subkey, self.exitStats[key][subkey]
)
if self.P5RC:
message += "\nNote that the P5s have been reverse complemented automatically!\n"

# undetermined table
undtableHead = ["P7", "P5", "# reads (M)", "% of und. Reads"]
Expand Down Expand Up @@ -481,7 +479,14 @@ def optDupRet(optDup):
parkourOrg # parkourOrg
]
)
if not self.P5RC:
P5RCstr = ''
else:
P5RCstr = '\n\nNote that the <FONT COLOR=red><strong>P5s have been reverse complemented automatically</strong></FONT> !'
P5RCstr += '\nThe multiQC report contains the barcodes as they are used for demultiplexing.\n'

msg = _html.render() +\
P5RCstr +\
'<h3>Top unknown barcodes</h3>' +\
tabulate(undtableCont, undtableHead, tablefmt="html") +\
'<h3>Samples</h3>' +\
Expand Down Expand Up @@ -522,3 +527,4 @@ def __init__(
self.mismatch = mismatch
self.transferTime = transferTime
self.exitStats = exitStats
self.P5RC = P5RC
3 changes: 3 additions & 0 deletions src/dissectBCL/demux.py
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,9 @@ def demux(sampleSheet, flowcell, config):
sampleSheet.ssDic[outLane]['sampleSheet'],
manual_df
)
# Check for 'bak file' existence.
if os.path.exists(demuxOut + '.bak'):
sampleSheet.ssDic[outLane]['P5RC'] = True
# Don't run bcl-convert if we have the touched flag.
if not os.path.exists(
os.path.join(outputFolder, 'bclconvert.done')
Expand Down

0 comments on commit 0f995fe

Please sign in to comment.