Skip to content

getRightStrand.py, IndexError: list index out of range #40

Description

@codeatcg

I met some problems (not the latest docker image). After checking my gff3 file and getRightStrand.py I found that error occurred when a gene contained an mRNA but lost CDS, just the situation in my gffs file. It seems to be different from the closed issue, though the error message is similar. I am worried that the latest image and the modification were not fit to the situation i encountered.
After modifying the code
if(len(position)<1):
continue
the errors seem to disappear.

Traceback (most recent call last):
File "/opt/LoReAn/code/lorean.py", line 610, in
main()
File "/opt/LoReAn/code/lorean.py", line 568, in main
update3_1 = grs.remove_redudant(ref_rename, update2)
File "/opt/LoReAn/code/getRightStrand.py", line 873, in remove_redudant
fasta = pep_seq(genome, final_evm)
File "/opt/LoReAn/code/getRightStrand.py", line 774, in pep_seq
t.start = position[0]
IndexError: list index out of range

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions