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

RSeQC tin.py module errors when providing empty input file #1604

Closed
drpatelh opened this issue Dec 16, 2021 · 1 comment
Closed

RSeQC tin.py module errors when providing empty input file #1604

drpatelh opened this issue Dec 16, 2021 · 1 comment
Labels
bug: module Bug in a MultiQC module

Comments

@drpatelh
Copy link
Contributor

drpatelh commented Dec 16, 2021

Description of bug

Running the rseqc/tin module errors if an empty file is found.

Tested with MultiQC v1.11

File that triggers the error

An empty file provided to the module will trigger it. I set this in the config for it to be found.

MultiQC Error log

Command output:
  |         searching | ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 357/357  

Command error:
  |    custom_content | biotype-gs: Found 5 General Statistics columns
  |    custom_content | biotype_counts: Found 5 samples (bargraph)
  |    custom_content | DupInt: Found 5 General Statistics columns
  |    custom_content | dupradar: Found 5 samples (linegraph)
  |    custom_content | salmon_deseq2_clustering: Found 5 samples (heatmap)
  |    custom_content | salmon_deseq2_pca: Found 5 samples (scatter)
  |    custom_content | star_salmon_deseq2_pca: Found 5 samples (scatter)
  |    custom_content | star_salmon_deseq2_clustering: Found 5 samples (heatmap)
  |            picard | Found 5 MarkDuplicates reports
  |            preseq | Found 5 reports
  |          qualimap | Found 5 RNASeq reports
  |             rseqc | Found 5 read_distribution reports
  |             rseqc | Found 3 inner_distance reports
  |             rseqc | Found 5 read_duplication reports
  |             rseqc | Found 5 junction_annotation reports
  |             rseqc | Found 5 junction_saturation reports
  |             rseqc | Found 5 infer_experiment reports
  |             rseqc | Found 5 bam_stat reports
  ╭───────────────── Oops! The 'rseqc' MultiQC module broke... ──────────────────╮
  │ Please copy this log and report it at                                        │
  │ https://github.com/ewels/MultiQC/issues                                      │
  │ Please attach a file that triggers the error. The last file found was:       │
  │ ./rseqc/tin/RAP1_UNINDUCED_REP1.tin.txt                                      │
  │                                                                              │
  │ Traceback (most recent call last):                                           │
  │   File "/usr/local/lib/python3.9/site-packages/multiqc/multiqc.py", line 624 │
  │     output = mod()                                                           │
  │   File "/usr/local/lib/python3.9/site-packages/multiqc/modules/rseqc/rseqc.p │
  │     n[sm] = getattr(module, "parse_reports")(self)                           │
  │   File "/usr/local/lib/python3.9/site-packages/multiqc/modules/rseqc/tin.py" │
  │     contents = next(reader)                                                  │
  │   File "/usr/local/lib/python3.9/csv.py", line 111, in __next__              │
  │     row = next(self.reader)                                                  │
  │ StopIteration                                                                │
  │                                                                              │
  ╰──────────────────────────────────────────────────────────────────────────────╯
  |            salmon | Found 5 meta reports
  |            salmon | Found 5 fragment length distributions
  |          samtools | Found 5 stats reports
  |          samtools | Found 5 flagstat reports
  |          samtools | Found 5 idxstats reports
  |              star | Found 5 reports
  |            fastqc | Found 8 reports
  |          cutadapt | Found 8 reports
  |            fastqc | Found 8 reports
  |           multiqc | Compressing plot data
  |           multiqc | Report      : multiqc_report.html
  |           multiqc | Data        : multiqc_data
  |           multiqc | Plots       : multiqc_plots
  |           multiqc | MultiQC complete
@ewels ewels added the bug: module Bug in a MultiQC module label Dec 28, 2021
ewels added a commit to MultiQC/test-data that referenced this issue Jan 27, 2022
@ewels ewels closed this as completed in bae13ef Jan 27, 2022
@ewels
Copy link
Member

ewels commented Jan 27, 2022

Fixed in bae13ef

vladsavelyev pushed a commit to vladsavelyev/MultiQC_TestData that referenced this issue Apr 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug: module Bug in a MultiQC module
Projects
None yet
Development

No branches or pull requests

2 participants