Is there a way to pull Sample Name from the log fi...
# multiqc
z
Is there a way to pull Sample Name from the log filename for custom content where the data is outside the config. Something like:
Copy code
custom_data:
  three_prime_alignments:
    file_format: "tsv"
    use_filename_as_sample_name: True
    section_name: "Custom Section"
    description: "Detailed Description"
    plot_type: "bargraph"
    pconfig:
      id: "custom_section"
      title: "Custom Plot"
      ylab: "Primary Count"

sp:
  custom_section:
    fh: "*.custom_metrics.tsv"
I've also tried something like:
Copy code
custom_data:
  three_prime_alignments:
    file_format: "tsv"
    section_name: "Custom Section"
    description: "Detailed Description"
    plot_type: "bargraph"
    pconfig:
      id: "custom_section"
      title: "Custom Plot"
      ylab: "Primary Count"

use_filename_as_sample_name:
  - custom_section

sp:
  custom_section:
    fh: "*.custom_metrics.tsv"
This leaves me with a sample name of
0
. Not sure if I'm putting
use_filename_as_sample_name
in the wrong spot, specifying the custom_section incorrectly, or if this isn't supported.
p
Can you share an example file? Custom content is a complex beast in how it parses data.
Ideally on the community forum if possible, community.seqera.io/multiqc - that's the official support channel for MultiQC (I'm on vacation at the moment so just replying here on my phone)
Note that if custom content doesn't work out of the box, switching to using a script is usually a short jump. May well end up being easier / quicker and gives complete customisation
z
Thank you, I'll get an example put together and posted there. Go back to vacation! 🏖️
👍🏻 1
🙏🏻 1