Skip to content

Commit 2eb5434

Browse files
committed
copy over analysis html for RELACS projects to seqfacdir too
1 parent fb7566f commit 2eb5434

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

BRB/PushButton.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def copyRELACS(config, d):
151151
:rtype: None
152152
'''
153153

154-
files = glob.glob(os.path.join(d, 'Sample*/', '*_fig.png'))
154+
files = glob.glob(os.path.join(d, "RELACS_demultiplexing", 'Sample*/', '*_fig.png')) + glob.glob(os.path.join(d, "multiQC", '*html'))
155155

156156
# /data/xxx/yyyy_lanes_1/Analysis_2526_zzzz/ChIP-Seq_mouse/RELACS_demultiplexing ->
157157
# Sequence_Quality_yyyy/Illumina_yyyy/yyyy_lanes_1
@@ -162,6 +162,8 @@ def copyRELACS(config, d):
162162
# to seqfac dir.
163163
nname = fname.split('/')
164164
nname = "_".join([nname[-5], nname[-3],nname[-1]])
165+
if '.html' in nname:
166+
nname = nname.replace('.html', 'analysis.html')
165167
# make lane directory in seqFacDir and copy it over
166168
seqfac_lane_dir = Path(config.get('Paths', 'seqFacDir')) / year_postfix / lane_dir
167169
os.makedirs(seqfac_lane_dir, exist_ok=True)
@@ -304,7 +306,7 @@ def RELACS(config, group, project, organism, libraryType, tuples):
304306
return outputDir, 1, False
305307
removeLinkFiles(outputDir)
306308
tidyUpABit(outputDir)
307-
copyRELACS(config,os.path.join(outputDir, "RELACS_demultiplexing"))
309+
copyRELACS(config, outputDir)
308310
# Recreate links under originalFastQ
309311
for fname in glob.glob(os.path.join(outputDir, "RELACS_demultiplexing", "*", "*.gz")):
310312
bname = os.path.basename(fname)

0 commit comments

Comments
 (0)