# Wmgx\_wmtx visualization rna\_dna\_norm.py failure

**URL:** <https://forum.biobakery.org/t/wmgx-wmtx-visualization-rna-dna-norm-py-failure/3843>\
**Category:** bioBakery workflows\
**Created:** [July 15, 2022, 7:41pm UTC](https://forum.biobakery.org/t/wmgx-wmtx-visualization-rna-dna-norm-py-failure/3843 "2022-07-15T19:41:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jxx419](https://avatars.discourse-cdn.com/v4/letter/j/c89c15/32.png) [@jxx419](https://forum.biobakery.org/u/jxx419)\
**Post date:** [July 15, 2022, 7:41pm UTC](https://forum.biobakery.org/t/wmgx-wmtx-visualization-rna-dna-norm-py-failure/3843/1 "2022-07-15T19:41:45Z")

</div>

When I run the wmgx\_wmtx workfllow, tasks related to rna\_dna\_norm.py fail. I am using the example dataset for wmgx\_wmtx provided on the github.

This is the command I am using:  
**biobakery\_workflows wmgx\_wmtx --input-metagenome input\_wms --input-metatranscriptome input\_wts --input-mapping mapping.tsv --output output\_wmtx --qc-options “–trimmomatic /home/jxx419/miniconda3/envs/biobakery\_workflow\_envs/share/trimmomatic/ --bypass-trf” --bypass-strain-profiling**

These are the resulting errors for task 64 and 65 respectively:  
**File “/home/jxx419/miniconda3/envs/biobakery\_workflow\_envs/bin/rna\_dna\_norm.py”, li  
ne 180, in write\_file\n file\_handle.write(“\t”.join(column\_labels)+“\n”)\nTypeError: a by  
tes-like object is required, not 'str'\n’**

and

**File “/home/jxx419/miniconda3/envs/biobakery\_workflow\_e  
nvs/bin/rna\_dna\_norm.py”, line 132, in divide\_by\_sample\_total\_abundance\n for j in range(le  
n(data[0])):\nIndexError: list index out of range\n’**

I tried changing this line:  
**with open(file, “wb”) as file\_handle:**  
to this:  
**with open(file, “w”) as file\_handle:**

as recommended in this post: [Wmgx\_wmtx worfklow rna\_dna\_norm.py failure + why is metagenome needed in metatranscriptome analysis?](https://forum.biobakery.org/t/wmgx-wmtx-worfklow-rna-dna-norm-py-failure-why-is-metagenome-needed-in-metatranscriptome-analysis/2856)

but it did not work. I have no clue as to what the issue could be. Again, I am using the exact data as provided in the examples folder in github. Any help would be greatly appreciated, thank you!
