@@ -151,7 +151,7 @@ def copyRELACS(config, d):
151
151
:rtype: None
152
152
'''
153
153
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 ' ))
155
155
156
156
# /data/xxx/yyyy_lanes_1/Analysis_2526_zzzz/ChIP-Seq_mouse/RELACS_demultiplexing ->
157
157
# Sequence_Quality_yyyy/Illumina_yyyy/yyyy_lanes_1
@@ -162,6 +162,8 @@ def copyRELACS(config, d):
162
162
# to seqfac dir.
163
163
nname = fname .split ('/' )
164
164
nname = "_" .join ([nname [- 5 ], nname [- 3 ],nname [- 1 ]])
165
+ if '.html' in nname :
166
+ nname = nname .replace ('.html' , 'analysis.html' )
165
167
# make lane directory in seqFacDir and copy it over
166
168
seqfac_lane_dir = Path (config .get ('Paths' , 'seqFacDir' )) / year_postfix / lane_dir
167
169
os .makedirs (seqfac_lane_dir , exist_ok = True )
@@ -304,7 +306,7 @@ def RELACS(config, group, project, organism, libraryType, tuples):
304
306
return outputDir , 1 , False
305
307
removeLinkFiles (outputDir )
306
308
tidyUpABit (outputDir )
307
- copyRELACS (config ,os . path . join ( outputDir , "RELACS_demultiplexing" ) )
309
+ copyRELACS (config , outputDir )
308
310
# Recreate links under originalFastQ
309
311
for fname in glob .glob (os .path .join (outputDir , "RELACS_demultiplexing" , "*" , "*.gz" )):
310
312
bname = os .path .basename (fname )
0 commit comments