Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export config.output_dir in MegaQC JSON #2287

Merged
merged 8 commits into from
Feb 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
- Unicode file reading errors: attempt to skip non-unicode characters ([#2275](https://github.com/MultiQC/MultiQC/pull/2275))
- Heatmap: check if value is numeric when calculating min and max ([#2276](https://github.com/MultiQC/MultiQC/pull/2276))
- Use alternative method to walk directory using pathlib ([#2277](https://github.com/MultiQC/MultiQC/pull/2277))
- Export `config.output_dir` in MegaQC JSON ([#2287](https://github.com/MultiQC/MultiQC/pull/2287))

### New modules

Expand Down
2 changes: 1 addition & 1 deletion multiqc/multiqc.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ def run(
analysis_dir = [analysis_dir]
config.analysis_dir = analysis_dir
if outdir is not None:
config.output_dir = outdir
config.output_dir = os.path.realpath(outdir)
if use_filename_as_sample_name:
config.use_filename_as_sample_name = True
logger.info("Using log filenames for sample names")
Expand Down
1 change: 1 addition & 0 deletions multiqc/utils/megaqc.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ def multiqc_dump_json(report):
"subtitle",
"title",
"version",
"output_dir",
],
}
for s in export_vars:
Expand Down