MultiQC icon indicating copy to clipboard operation
MultiQC copied to clipboard

Sample rename does not work as expected

Open jd3234 opened this issue 2 years ago • 0 comments

Description of bug

Hi, I am trying to do bulk renaming of samples via command line. Here is the example of my mapping file

id new name
45007 13Z045031DH02_leaf_replicate_1
45031 08NR063DH01_leaf_replicate_1

The replication of the ID 45031 in the the new name (bold) is causing the first sample to be combination of the two new names: 13Z008NR063DH01_leaf_replicate_1DH02_leaf_replicate_1 .

I tested to use a config file with sample_names_replace_complete: True or sample_names_replace_exact: True but that did not help. Is there another way change this behaviour or am I doing something wrong?

File that triggers the error

MultiQC.zip

zip file contains two FeatureCount Summary files and the sample mapping file.

MultiQC Error log

multiqc --sample-names mapping.faulty 45007.fc.tsv.summary 45031.fc.tsv.summary

  /// MultiQC 🔍 | v1.12

|           multiqc | Report title: QC: RNAseq mapping and feature count
|           multiqc | Search path : /mnt/scratch/janina/RNA_MULTIQC/45007.fc.tsv.summary
|           multiqc | Search path : /mnt/scratch/janina/RNA_MULTIQC/45031.fc.tsv.summary
|         searching | ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 2/2  
|    feature_counts | Found 2 reports
|           multiqc | Compressing plot data
|           multiqc | Report      : multiqc_report.html
|           multiqc | Data        : multiqc_data
|           multiqc | MultiQC complete

jd3234 avatar Jun 10 '22 14:06 jd3234