Skip to content

IndexError in final_out.py When Processing TPM Values #21

@zdq0808

Description

@zdq0808

Hello, Fotakis.

I am using neofuse and I encountered an IndexError during the execution of the script final_out.py. The error occurs when the script attempts to access elements in a list that appears to be shorter than expected.

Error Message:

Traceback (most recent call last):
File "/usr/local/bin/source/final_out.py", line 155, in
desperation(inFile1, inFile2, outFile)
File "/usr/local/bin/source/final_out.py", line 80, in desperation
if "NA" in gene1tpm[i].split("\t")[1] or "NA" in gene2tpm[i].split("\t")[1]:
IndexError: list index out of range;

Possible Fix:
It may be helpful to add checks before accessing list elements to ensure that the length of the split results meets the expected number of elements.

I am happy to provide further details or assist in testing any fixes. Thank you for looking into this issue.

Dongqiang

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions