Skip to content

Commit 3f9b9a6

Browse files
authored
Merge pull request #10 from vladsavelyev/multiqc_v1_22
Fixes for MultiQC v1.22
2 parents 8b2121d + 07d0f4a commit 3f9b9a6

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

multiqc_ngi/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python
22

33
from importlib.metadata import version
4-
from multiqc.utils import config
4+
from multiqc import config
55

66
__version__ = version("multiqc_ngi")
77
config.multiqc_ngi_version = __version__

multiqc_ngi/multiqc_ngi.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818

1919
__version__ = version("multiqc_ngi")
2020

21-
from multiqc.utils import report, util_functions, config
21+
from multiqc import report, config
22+
from multiqc.utils import util_functions
2223

2324
log = logging.getLogger('multiqc')
2425

@@ -233,7 +234,7 @@ def get_ngi_project_metadata(self, pid):
233234

234235
config.title = '{}: {}'.format(pid, p_summary['project_name'])
235236
config.project_name = p_summary['project_name']
236-
if config.analysis_dir and ('qc_ngi' in config.analysis_dir[0] or 'qc_ngi' in os.listdir()):
237+
if config.analysis_dir and ('qc_ngi' in str(config.analysis_dir[0]) or 'qc_ngi' in os.listdir()):
237238
infix = 'qc'
238239
else:
239240
infix = 'pipeline'
@@ -295,7 +296,7 @@ def get_ngi_samples_metadata(self, pid, s_names=None):
295296
def fastqscreen_genome(self):
296297
"""Add the Refrence genome from statusdb to fastq_screen html"""
297298
if report.ngi.get('reference_genome') is not None:
298-
for m in report.modules_output:
299+
for m in report.modules:
299300
if m.anchor == 'fastq_screen':
300301
genome=report.ngi['reference_genome']
301302
nice_names = {
@@ -321,7 +322,7 @@ def general_stats_sample_meta(self):
321322
log.info('Found {} samples in StatusDB'.format(len(meta)))
322323

323324
# Write to file
324-
util_functions.write_data_file(meta, 'ngi_meta')
325+
report.write_data_file(meta, 'ngi_meta')
325326

326327
# Add to General Stats table
327328
gsdata = dict()

multiqc_ngi/templates/ngi/header.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ <h4>JavaScript Disabled</h4>
118118
&nbsp; <small><em>(6:06)</em></small>
119119
</div>
120120

121-
{% if report.num_hc_plots > 0 and report.general_stats_html['rows'] | length > config.num_datasets_plot_limit %}
121+
{% if report.plot_data | length > 0 and report.general_stats_html['rows'] | length > config.num_datasets_plot_limit %}
122122
<div id="mqc-warning-many-samples" class="alert alert-warning alert-dismissible hidden-print">
123123
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
124124
<span class="glyphicon glyphicon-warning-sign" aria-hidden="true"></span>

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
'simplejson',
3131
'pyyaml',
3232
'requests',
33-
'multiqc'
33+
'multiqc>=1.22.dev0'
3434
],
3535
entry_points = {
3636
'multiqc.templates.v1': [

0 commit comments

Comments
 (0)