A question regarding the new `table_sample_merge` ...
# multiqc
j
A question regarding the new
table_sample_merge
feature: In the nextflow script I am doing
Copy code
ch_multiqc_files = ch_multiqc_files.mix(SUMMARIZE_RESULTS.out.json.collect{ it[1] })
containing
Copy code
[/mnt/volume/dev/epitopeprediction-2/work/7b/fb637d9cf034df6410c068d1105137/sample2_mhcflurry_mqc.json, /mnt/volume/dev/epitopeprediction-2/work/7b/fb637d9cf034df6410c068d1105137/sample2_mhcnuggets_mqc.json, /mnt/volume/dev/epitopeprediction-2/work/1d/9d0e08de838af2ddb67f46acc0cabb/sample1_mhcflurry_mqc.json, /mnt/volume/dev/epitopeprediction-2/work/1d/9d0e08de838af2ddb67f46acc0cabb/sample1_mhcnuggets_mqc.json]
Each file has this content
Copy code
{
  "id": "peptide_binding_prediction",
  "section_name": "Peptide Binding Prediction",
  "description": "Summary of peptide binding predictions",
  "plot_type": "table",
  "pconfig": {
    "id": "peptide_binding_prediction_table",
    "title": "Peptide Binding Prediction Summary"
  },
  "data": {
    "sample2": {
      "Binders": 9,
      "Non-binders": 114,
      "Unsupported": 77,
      "Binders (%)": "7.32",
      "Non-binders (%)": "92.68"
    }
  }
}
And I added this to the
multiqc_config.yml
:
Copy code
table_sample_merge:
  "MHCflurry": "_mhcflurry"
  "MHCnuggets": "_mhcnuggets"
I get the attached output, so samples are not merged. Can someone help me out here? Thanks!
MQC Version 1.27.0
Maybe there is no support yet for
custom_contents
?
p
Merging is done based on the sample names, not the filenames
So your
sample2
will be being overwritten each time before it gets to the merge step
If you call the sample key something different under
data
so that they don't get overwritten, that's the first step (general stats table should then be much longer, with many samples).
Then you can use suffixes on those sample IDs to group
Make sense?